Chromium Code Reviews
Descriptioncc: Implement overdraw feedback debugging feature.
This adds a overdraw feedback debug flag to the GL renderer. This feature
is inspired by the GPU overdraw debug feature that exists on Android and
developers familiar with that feature will feel at home using this flag
when debugging overdraw in web-pages or in the ChromeOS UI.
When enabled, this flag visualize overdraw by color-coding areas of the
output based on how much overdraw is taking place. The colors are
hinting at the amount of overdraw on the screen for each pixel, as follows:
True color: No overdraw
Blue: Overdrawn once
Green: Overdrawn twice
Pink: Overdrawn three times
Red: Overdrawn four or more times
This also adds an overdraw tracing category (cc.debug.overdraw) that
provides a trace counter for the current amount overdraw.
The --ui-disable-partial-swap flag is also added to about:flags in
this patch. Disabling of partial swap is not required for overdraw
feedback but often what you want to make the output easier to diagnose.
BUG=678234
TEST=chrome --show-overdraw-feedback, cc_unittests --gtest_filter=GLRendererPixelTestWithOverdrawFeedback.TranslucentRectangles
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2612023002
Cr-Commit-Position: refs/heads/master@{#444256}
Committed: https://chromium.googlesource.com/chromium/src/+/9413cffb4fdc7dbcfc40a8da0530942e2f6ae0f2
Patch Set 1 #Patch Set 2 : tracing support #
Total comments: 8
Patch Set 3 : feedback #Patch Set 4 : fix partial swap behavior #Patch Set 5 : fix typo in comment #
Total comments: 42
Patch Set 6 : pixel test #Patch Set 7 : const& #Patch Set 8 : rebase #
Total comments: 2
Patch Set 9 : tracing cleanup #
Total comments: 17
Patch Set 10 : address feedback #Patch Set 11 : address more feedback #Patch Set 12 : rebase #Patch Set 13 : fix android build #Patch Set 14 : fix buffer queue unit test and renderer pixel test build on android #Patch Set 15 : fix partial swap resource #Patch Set 16 : fix another android build issue #Patch Set 17 : another android build fix #Patch Set 18 : make sure overdraw_feedback_ is initialized and reset properly #Messages
Total messages: 67 (32 generated)
|