Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Issue 2160683003: Fix MultiPictureDraw issues with GpuImageDecodeController (Closed)

Created:
4 years, 5 months ago by ericrk
Modified:
4 years, 5 months ago
Reviewers:
vmpstr
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2785
Target Ref:
refs/pending/branch-heads/2785
Project:
chromium
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -17 lines) Patch
M cc/layers/picture_layer_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/playback/raster_source.h View 1 chunk +16 lines, -1 line 0 comments Download
M cc/playback/raster_source.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M cc/playback/raster_source_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/raster/gpu_raster_buffer_provider.cc View 5 chunks +38 lines, -4 lines 0 comments Download
M cc/raster/raster_buffer_provider_unittest.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M cc/test/skia_common.cc View 2 chunks +17 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 3 chunks +80 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
ericrk
4 years, 5 months ago (2016-07-18 20:06:35 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
f546781498cdb5648210484fc4e9ade4127f17a5.

Powered by Google App Engine
This is Rietveld 408576698