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

Issue 2035913002: Prevent use of GPU IDC in Resourceless Software Draw (Closed)

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

Description

Prevent use of GPU IDC in Resourceless Software Draw An ImageDecodeController is created once for the lifetime of a Layer tree host impl (LTHI). Normally this is fine, as a SW ImageDecodeController (IDC) is created for SW raster and a GPU IDC is created for GPU raster. However, when a GPU Raster LTHI temporarily goes into a resourceless software draw, we may incorrectly use the GPU IDC during SW raster, leading to crashes. This change Adds a parameter to SoftwareRenderer, |use_image_hijack_canvas|, which indicates whether or not the renderer should use the ImageHijackCanvas and IDC. When we are using a GPU enabled LayerTreeHostImpl for resourceless software draw, we set this value to false. BUG=614773 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/2af3e47380eb2a2a4ebb3b22c654b1881c722ccc Cr-Commit-Position: refs/heads/master@{#397547}

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -16 lines) Patch
M cc/output/software_renderer.h View 1 2 3 chunks +11 lines, -2 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 2 chunks +9 lines, -4 lines 0 comments Download
M cc/output/software_renderer_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/surfaces/display.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/pixel_test.h View 1 chunk +5 lines, -1 line 0 comments Download
M cc/test/pixel_test.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 2 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
ericrk
What do you think about something like this? Didn't want to add the param to ...
4 years, 6 months ago (2016-06-02 19:52:56 UTC) #3
ericrk
4 years, 6 months ago (2016-06-02 19:53:09 UTC) #4
vmpstr
lgtm https://codereview.chromium.org/2035913002/diff/20001/cc/output/software_renderer.h File cc/output/software_renderer.h (right): https://codereview.chromium.org/2035913002/diff/20001/cc/output/software_renderer.h#newcode119 cc/output/software_renderer.h:119: const bool use_image_hijack_canvas_; Can you add a comment ...
4 years, 6 months ago (2016-06-02 19:57:47 UTC) #5
boliu
verified fix with repro steps in crbug.com/613546
4 years, 6 months ago (2016-06-02 20:21:11 UTC) #6
ericrk
thanks! https://codereview.chromium.org/2035913002/diff/20001/cc/output/software_renderer.h File cc/output/software_renderer.h (right): https://codereview.chromium.org/2035913002/diff/20001/cc/output/software_renderer.h#newcode119 cc/output/software_renderer.h:119: const bool use_image_hijack_canvas_; On 2016/06/02 19:57:47, vmpstr wrote: ...
4 years, 6 months ago (2016-06-02 20:45:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2035913002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2035913002/60001
4 years, 6 months ago (2016-06-02 20:47:13 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 6 months ago (2016-06-02 23:56:24 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 23:58:56 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2af3e47380eb2a2a4ebb3b22c654b1881c722ccc
Cr-Commit-Position: refs/heads/master@{#397547}

Powered by Google App Engine
This is Rietveld 408576698