From 75c0e70c00e9d2ab5445816a69beed632a48433d Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Mon, 23 Nov 2020 12:49:14 -0800 Subject: [PATCH] winscope: fix incorrect bounds offset Fixes incorrect visualization of sf layers if layer bounds are not at 0,0. This can happen if the parent layer ends up cropping the child layer. Test: manual test with problematic winscope trace Change-Id: I1e0c4ec0e632b015f6fae26ee20985cd6c56aa16 --- tools/winscope/src/transform_sf.js | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/winscope/src/transform_sf.js b/tools/winscope/src/transform_sf.js index 5e8314af0..8d6c20d21 100644 --- a/tools/winscope/src/transform_sf.js +++ b/tools/winscope/src/transform_sf.js @@ -61,7 +61,6 @@ function transformLayer(layer) { let result = layer.bounds; const tx = layer.position ? layer.position.x || 0 : 0; const ty = layer.position ? layer.position.y || 0 : 0; - result = offsetTo(result, 0, 0); result.label = layer.name; result.transform = layer.transform; result.transform.tx = tx;