am: c1397cface -s ours
am skip reason: change_id I85f52bd3dc9174499c4a4840c6b5e80555f28fc7 with SHA1 4c71de20a8 is in history
Change-Id: I50820d94da8f074f43502c4d0ea286e69d3ee8cf
am: a1d3b9d995 -s ours
am skip reason: change_id I85f52bd3dc9174499c4a4840c6b5e80555f28fc7 with SHA1 4c71de20a8 is in history
Change-Id: I833ab3aeeedc44565a593376e90d5872aa18c400
* changes:
WinScope: Support missing layers
Winscope: Fix how layers with transforms and positions are rendered
WinScope: Modify instead of replacing proto objects
Support SF traces without any layers (needed when booting SF)
Winscope: Translate layer flags in Surface flinger dump
Update `Display default` checkbox label
Add Type to transform objects.
Fix visibility rule for SF traces on Winscope
Allow SF traces to omit default values on the property list
Fix "TypeError: Cannot read property 'x' of null" on SF traces
Display only elements actually visible on the screen as "Visible"
Display SF layer based on size, crop & parent instead of buffer size
WinScope: Support boundless surfaces in WinScope
Winscope: Use a unique stableId for all layers and wm entries
Winscope: keep backwards compatibility prior to windowFrames
am: 3bcb668c1a -s ours
am skip reason: change_id I072daae54601120de5b6eaa0a64ee7c3096e4a43 with SHA1 7138f343a1 is in history
Change-Id: Ic79ea427005cd10435c2d5fea719b6e23ce98cb0
am: 19125e9c69 -s ours
am skip reason: change_id Ia84501014e6cf83d2fb1d167c1a7aac8b64a06d4 with SHA1 a938f290a0 is in history
Change-Id: I6925fa155a66bdca4c8a21146a23f3bff645e8ea
am: 05693202ac -s ours
am skip reason: change_id Ia9528401a0d8542266a7898be6d032a6cf166946 with SHA1 2394e4ecac is in history
Change-Id: I006b69a82302a4272f1625b330416395fffd5e85
am: 1ae22e2952 -s ours
am skip reason: change_id If69e1bc340c0c79a5fb07385cc6921dd093e8fc2 with SHA1 97c5b512a3 is in history
Change-Id: I3e4bb22f6188899b46db3270b4c4adfefdd36378
am: d63def531c -s ours
am skip reason: change_id I188bb2c327bc61c309f7e3e3746f0af4241a94a9 with SHA1 45094b9c03 is in history
Change-Id: I742f9aca94ad66899c92f2a9d4306f16fc9576dd
This commit changes <dump-files> to be an optional parameter for
header-abi-linker. The linker can generate lsdump files for libraries
without source files.
Test: ./test.py
Test: ./create_reference_dumps.py -products aosp_arm64
Bug: 135728451
Change-Id: Ib9fe56591bd476921904118b1bafcdf2e987f8bb
The new sf layer transform changes breaks when missing layers are added since they do not contain transform
data. Fix this is by adding a transform when creating missing layers.
Also set the transform type when populating transform matrices so they are displayed as IDENTITY.
Test: Open trace from bug
Fixes: 130886882
Merged-In: I85f52bd3dc9174499c4a4840c6b5e80555f28fc7
Change-Id: I85f52bd3dc9174499c4a4840c6b5e80555f28fc7
Currently position is applied to the layer bounds before applying the transform. The bounds
are also not bounded by parent bounds.
Change the logic to use the calculated layer bounds and apply the transform with position when
rendering the layer on screen.
Keep existing logic to view traces before layer bounds were added.
Bug: 128925841
Test: open winscope with old (P) and new trace (Q ToT). Check if layers are rendered correctly when rotated.
Merged-In: Ia91262e4dfe3e8ad647acf8e0cf961e270441cde
Change-Id: Ia91262e4dfe3e8ad647acf8e0cf961e270441cde
Converting the proto object inorder to set the enum string values
or display default values replaces existing proto objects and its
properties which maybe used by the formatter function.
Instead replace toObject method with a custom one that limits
modifications to the existing proto objects.
Test: run WinScope and check WM and SF traces
Merged-In: Ie084d288aaf569476f1e9284c3a9c8a06364a61a
Change-Id: Ie084d288aaf569476f1e9284c3a9c8a06364a61a
When using continuous logging and having the trace enabled by default,
the first entries have no layers and crash Winscope.
Test: Flash a device with SF tracing enabled by default. Record the
initial trace. Open trace in Winscope.
Merged-In: I693815ff3e6468291770d3e8197e21bf75a2a87a
Change-Id: I693815ff3e6468291770d3e8197e21bf75a2a87a
Test: Open sf trace and check if flags are translated
Fixes: 127436444
Merged-In: If696d33054ae566d209b769427f5681d4e1ff876
Change-Id: If696d33054ae566d209b769427f5681d4e1ff876
Replace label for `Show default properties` and add tooltip explaining
what this checkbox is used for
Test: Open winscope
Merged-In: I39de3e1d7c203d5273084bd54c4d2f749e8e6f5f
Change-Id: I39de3e1d7c203d5273084bd54c4d2f749e8e6f5f
Add a type, based on the framework/native definitions, to the transform
objects.
If the transform matrix can be reconstructed from the type (identity,
translate, rotate 0/90/180/270) it should not be stored on the protobuf,
but should instead be reconstructed on Winscope.
Test: Record a Proto3 SF trace. Open it without displaying default
values in Winscope. Check if it is correct. Select a legacy trace. Open
it in Winscope. Check is it is also correct.
Merged-In: I03744efba2c8740d7c543f6793bce0ba7bf6d975
Change-Id: I03744efba2c8740d7c543f6793bce0ba7bf6d975
When traces don't have a visible region object assigned winscope crashes
while loading a SF trace.
Test: Open a SF trace without a visible region object on winscope. It
should no longer crash
Merged-In: I7919a0301ccfb6a0811fd15feb718c8ac0b210b1
Change-Id: I7919a0301ccfb6a0811fd15feb718c8ac0b210b1
The C++ proto2 implementation write the default values ot the file.
Until the surface flinger dump is updated to proto3, this implementation
will not have any effect.
Test: (Un)Check the `display defaults` checkbox. Load a file. If the
checkbox is unchecked, default values should not appear on winscope,
otherwise they should appear.
Merged-In: I2432966f3e14aba5fc1dee26d5a09c743406b417
Change-Id: I2432966f3e14aba5fc1dee26d5a09c743406b417
The protobuf definition allows the position attribute not to be defined.
Winscope crashes if the position is not defined, instead of assuming it
as (x: 0, y: 0)
Test: Load a SF protobuf object without the position attribute. Check if
Winscope does't crash while loading it.
Merged-In: Ib12ba7875f1e7b22819274c1cd9961a1dbfe82cf
Change-Id: Ib12ba7875f1e7b22819274c1cd9961a1dbfe82cf