DescriptionTurn overdraw metrics on only when about:tracing is recording.
Now that we're in chromium, we can tell if about:tracing is enabled ot not!
Turn on overdraw metrics, and their expensive computations, only when
about:tracing is turned on.
When we do turn them on, we don't want the performance characteristics of
the system to suddenly change, or the tracing is not very meaningful! So, we
track the number of pixels read, instead of written, for overdraw (which
should mostly be the same with the new rasterScale feature). This
computation is very cheap compared to the old one.
R=jamesr
BUG=119126
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=166464
Patch Set 1 #Patch Set 2 : Make overdraw computation cheap #Patch Set 3 : Fixing unittests #
Messages
Total messages: 12 (0 generated)
|