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

Issue 904033008: Fix render state restore bug in DirectRenderer (Closed)

Created:
5 years, 10 months ago by ericrk
Modified:
5 years, 10 months ago
Reviewers:
danakj
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

Fix render state restore bug in DirectRenderer When processing multiple copy requests, DirectRenderer must restore state between requests. Due to a change from an index based for loop to an iterator based loop, a check within the loop for the first iteration had gotten out of date. This caused DirectRenderer to miss a required state restore in some cases. This change restores the intended behavior. The software renderer had a bug where calling UseRenderPass multiple times would result in a crash. The bug addressed in this CL made this a more common occurrance. A fix to the software-renderer issue was committed in CL (899183003). This change doesn't revert the software renderer fix as it is still possible to hit the software renderer bug even with this bug fixed. See the additional unit test for a case where the software renderer fix is still necessary even with this patch. R=danakj@chromium.org Committed: https://crrev.com/eaf9258c49f76a997f690a63cb7e3091a09990b0 Cr-Commit-Position: refs/heads/master@{#315412}

Patch Set 1 #

Total comments: 8

Patch Set 2 : CL Feedback #

Total comments: 4

Patch Set 3 : CL feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -819 lines) Patch
M cc/output/direct_renderer.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_pixeltest_readback.cc View 1 2 8 chunks +192 lines, -818 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
ericrk
5 years, 10 months ago (2015-02-09 01:40:18 UTC) #1
danakj
https://codereview.chromium.org/904033008/diff/1/cc/trees/layer_tree_host_pixeltest_readback.cc File cc/trees/layer_tree_host_pixeltest_readback.cc (right): https://codereview.chromium.org/904033008/diff/1/cc/trees/layer_tree_host_pixeltest_readback.cc#newcode1147 cc/trees/layer_tree_host_pixeltest_readback.cc:1147: class LayerTreeHostReadbackNonFirstNonRootRenderPassPixelTest Maybe we can rename this a bit ...
5 years, 10 months ago (2015-02-09 18:01:17 UTC) #2
ericrk
Made suggested comments. Also refactored the unit tests in layer_tree_host_pixeltest_readback.cc to be parameterized. This removes ...
5 years, 10 months ago (2015-02-09 19:46:15 UTC) #3
danakj
LGTM https://codereview.chromium.org/904033008/diff/20001/cc/trees/layer_tree_host_pixeltest_readback.cc File cc/trees/layer_tree_host_pixeltest_readback.cc (right): https://codereview.chromium.org/904033008/diff/20001/cc/trees/layer_tree_host_pixeltest_readback.cc#newcode428 cc/trees/layer_tree_host_pixeltest_readback.cc:428: // This test has 2 copy requests on ...
5 years, 10 months ago (2015-02-09 20:02:00 UTC) #4
ericrk
https://codereview.chromium.org/904033008/diff/20001/cc/trees/layer_tree_host_pixeltest_readback.cc File cc/trees/layer_tree_host_pixeltest_readback.cc (right): https://codereview.chromium.org/904033008/diff/20001/cc/trees/layer_tree_host_pixeltest_readback.cc#newcode428 cc/trees/layer_tree_host_pixeltest_readback.cc:428: // This test has 2 copy requests on the ...
5 years, 10 months ago (2015-02-09 21:11:19 UTC) #6
danakj
LGTM
5 years, 10 months ago (2015-02-09 21:15:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/904033008/40001
5 years, 10 months ago (2015-02-09 21:16:11 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-09 22:37:27 UTC) #10
commit-bot: I haz the power
5 years, 10 months ago (2015-02-09 22:38:20 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/eaf9258c49f76a997f690a63cb7e3091a09990b0
Cr-Commit-Position: refs/heads/master@{#315412}

Powered by Google App Engine
This is Rietveld 408576698