Chromium Code Reviews
DescriptionFix MultiPictureDraw issues with GpuImageDecodeController
Currently, the GpuImageDecodeController (GPU IDC) is used during the
initial playback of a RasterSource. Unfortunately, the initial playback
is just used to generate an SkPicture, not to actually raster. Actual
rasterization happens later, via MultiPictureDraw. Because of this the
calls to GetDecodedImageForDraw and DrawWithImageFinished on the GPU IDC
do not scope Skia's usage of an image, as was intended. This can lead
to lifetime issues, especially with large, software-backed images.
This change moves the usage of ImageHijackCanvas and the GPU IDC to the
later MultiPictureDraw phase, allowing lifetimes to line up as expected.
R=vmpstr@chromium.org
BUG=612329, 628394
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel
Committed: https://crrev.com/1259d6e73e7f8904243aa3451bc9071a18f93cbd
Cr-Commit-Position: refs/heads/master@{#405649}
Patch Set 1 #
Total comments: 8
Patch Set 2 : feedback #
Total comments: 2
Patch Set 3 : Cleanup tests and add max texture size validation #Patch Set 4 : rebase #
Messages
Total messages: 25 (15 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||