From 7353794edc3f61e22d6b158d131f472d81cdee9c Mon Sep 17 00:00:00 2001 From: Nataniel Borges Date: Mon, 9 Jan 2023 12:14:05 +0000 Subject: [PATCH] Update winscope proxy to version 1.0 Bug: 264573983 Change-Id: Ie7e14b11c3b3a866a649b4e013a60fe542d3d754 Test: open winscope and proxy and dump wm and sf states --- tools/winscope/adb_proxy/winscope_proxy.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/winscope/adb_proxy/winscope_proxy.py b/tools/winscope/adb_proxy/winscope_proxy.py index 13b3c3c52..d1fd7ed4c 100755 --- a/tools/winscope/adb_proxy/winscope_proxy.py +++ b/tools/winscope/adb_proxy/winscope_proxy.py @@ -46,8 +46,8 @@ LOG_LEVEL = logging.DEBUG PORT = 5544 -# Keep in sync with WINSCOPE_PROXY_VERSION in Winscope DataAdb.vue -VERSION = '0.8' +# Keep in sync with ProxyClient#VERSION in Winscope +VERSION = '1.0' WINSCOPE_VERSION_HEADER = "Winscope-Proxy-Version" WINSCOPE_TOKEN_HEADER = "Winscope-Token" @@ -200,8 +200,7 @@ class SurfaceFlingerTraceConfig: """ def __init__(self) -> None: - # default config flags CRITICAL | INPUT | SYNC - self.flags = 1 << 0 | 1 << 1 | 1 << 6 + self.flags = 0 def add(self, config: str) -> None: self.flags |= CONFIG_FLAG[config] @@ -260,10 +259,12 @@ class WindowManagerTraceSelectedConfig: CONFIG_FLAG = { + "input": 1 << 1, "composition": 1 << 2, "metadata": 1 << 3, "hwc": 1 << 4, - "tracebuffers": 1 << 5 + "tracebuffers": 1 << 5, + "virtualdisplays": 1 << 6 } #Keep up to date with options in DataAdb.vue