DescriptionEliminate deferral overhead with canvas to canvas draws
This fixes a performance regression from r199900 which caused deferred
canvas operations to be flushed all the way down to the GrContext level
every time a canvas to canvas draw was performed. This was significantly
slowing down uses cases the use canvases as sprite atlases. This change
does more that fix the performance regression. By stoping the canvas
from switching back and forth between immediate and deferred rendering,
we get ~2x perf boost in cases where a GPU-accelerated canvas is used
as an atlas.
BUG=517504
TEST=tough_canvas_cases/canvas2d_balls_common/bouncing_balls.html?ball=canvas_sprite&back=canvas
NOTRY=true
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200545
Patch Set 1 #
Total comments: 1
Patch Set 2 : git cl web #Depends on Patchset: Messages
Total messages: 9 (3 generated)
|