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

Issue 11883030: cc: Fix lost context handling when using impl-side painting. (Closed)

Created:
7 years, 11 months ago by reveman
Modified:
7 years, 11 months ago
Reviewers:
nduca, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Fix lost context handling when using impl-side painting. Make sure all tile references are dropped from active and pending tree before the tile manager is destroyed. Also call CheckForCompletedSetPixels() in tile manager destructor to ensure all tiles with pending set pixels are deleted. BUG=169919 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177056

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add unit test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -4 lines) Patch
M cc/layer_tree_host_impl.cc View 1 1 chunk +6 lines, -3 lines 0 comments Download
M cc/layer_tree_host_unittest_context.cc View 1 2 chunks +46 lines, -0 lines 2 comments Download
M cc/picture_layer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/picture_layer_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/tile_manager.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
reveman
7 years, 11 months ago (2013-01-15 02:57:28 UTC) #1
enne (OOO)
How hard would it be to add PictureLayerImpl to the lost context unit tests? https://codereview.chromium.org/11883030/diff/1/cc/layer_tree_host_impl.cc ...
7 years, 11 months ago (2013-01-15 03:36:25 UTC) #2
reveman
I'll look into adding a unit test tomorrow. https://codereview.chromium.org/11883030/diff/1/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (right): https://codereview.chromium.org/11883030/diff/1/cc/layer_tree_host_impl.cc#newcode974 cc/layer_tree_host_impl.cc:974: m_pendingTree.reset(); ...
7 years, 11 months ago (2013-01-15 04:05:13 UTC) #3
reveman
Added a unit test to latest patch. PTAL.
7 years, 11 months ago (2013-01-15 22:31:17 UTC) #4
enne (OOO)
https://codereview.chromium.org/11883030/diff/7001/cc/layer_tree_host_unittest_context.cc File cc/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/11883030/diff/7001/cc/layer_tree_host_unittest_context.cc#newcode816 cc/layer_tree_host_unittest_context.cc:816: class ImplSidePaintingLayerTreeHostContextTest How would this test fail before your ...
7 years, 11 months ago (2013-01-15 22:35:41 UTC) #5
reveman
https://codereview.chromium.org/11883030/diff/7001/cc/layer_tree_host_unittest_context.cc File cc/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/11883030/diff/7001/cc/layer_tree_host_unittest_context.cc#newcode816 cc/layer_tree_host_unittest_context.cc:816: class ImplSidePaintingLayerTreeHostContextTest On 2013/01/15 22:35:41, enne wrote: > How ...
7 years, 11 months ago (2013-01-15 23:16:25 UTC) #6
enne (OOO)
Thanks for the explanation. Both of those make a lot of sense. lgtm
7 years, 11 months ago (2013-01-15 23:17:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/11883030/7001
7 years, 11 months ago (2013-01-15 23:37:43 UTC) #8
commit-bot: I haz the power
7 years, 11 months ago (2013-01-16 02:19:42 UTC) #9
Message was sent while issue was closed.
Change committed as 177056

Powered by Google App Engine
This is Rietveld 408576698