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

Issue 2161633003: 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, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@2743
Target Ref:
refs/pending/branch-heads/2743
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. TBR=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/+/0701df60264a6aa83032e19f49c6040ee4c4042d

Patch Set 1 #

Patch Set 2 : fix unit test build in branch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -15 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_rasterizer.cc View 3 chunks +31 lines, -2 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 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (4 generated)
ericrk
4 years, 5 months ago (2016-07-18 21:45:06 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:60001) manually as
0701df60264a6aa83032e19f49c6040ee4c4042d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698