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

Issue 2041093002: 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:
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2743
Target Ref:
refs/pending/branch-heads/2743
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 Review-Url: https://codereview.chromium.org/2035913002 Cr-Commit-Position: refs/heads/master@{#397547} (cherry picked from commit 2af3e47380eb2a2a4ebb3b22c654b1881c722ccc) Committed: https://chromium.googlesource.com/chromium/src/+/6b6095a611dc659fa5e3dc6d98f20fc63ab510c6

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -16 lines) Patch
M cc/output/software_renderer.h View 3 chunks +11 lines, -2 lines 0 comments Download
M cc/output/software_renderer.cc View 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 2 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
ericrk
4 years, 6 months ago (2016-06-06 18:36:05 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
6b6095a611dc659fa5e3dc6d98f20fc63ab510c6.

Powered by Google App Engine
This is Rietveld 408576698