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
Review-Url: https://codereview.chromium.org/2149843003
Cr-Commit-Position: refs/heads/master@{#405649}
(cherry picked from commit 1259d6e73e7f8904243aa3451bc9071a18f93cbd)
Committed: https://chromium.googlesource.com/chromium/src/+/f546781498cdb5648210484fc4e9ade4127f17a5
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||