Chromium Code Reviews
DescriptionStop unnecessary flushing in Canvas2DLayerBridge
Experiments with chrome://tracing revealed non-negligible
CPU overhead from calling SkCanvas::flush() and gl->Flush()
unnecessarily when nothing has been drawn to the canvas since the
previous flush. This change adds a simple early exit.
Performance gain will be visible through existing telemetry benchmarks.
BUG=681200
Review-Url: https://codereview.chromium.org/2637553002
Cr-Commit-Position: refs/heads/master@{#443917}
Committed: https://chromium.googlesource.com/chromium/src/+/11dadab7208d79cf95542cd9ac8c285844141a6a
Patch Set 1 #
Total comments: 1
Messages
Total messages: 14 (8 generated)
|
||||||||||||||||||||||||||||