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

Issue 13820002: cc: Don't DCHECK for layers with non-invertible transforms. (Closed)

Created:
7 years, 8 months ago by danakj
Modified:
7 years, 8 months ago
Reviewers:
enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, piman, backer, Xianzhu
Visibility:
Public.

Description

cc: Don't DCHECK for layers with weird transforms. A layer with a non-invertible transform should have an empty visible content rect, so that we do not try to raster it. A layer that has a transform that makes it non-visible in the viewport would also inversely make the viewport non-visible (empty) in its own space. The prioritization rect for this layer should be empty, making all tiles not live. Tests: PictureLayerTilingTest.EmptyStartingRect PictureLayerTilingIteratorTest.TilesExist LayerTreeHostCommonTest.DrawableAndVisibleContentRectsForLayersWithUninvertibleTransform LayerTreeHostTestUninvertibleTransformDoesNotBlockActivation.RunMultiThread R=enne BUG=229409 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193329

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : LayerTreeHostTestUninvertibleTransformDoesNotBlockActivation.RunMultiThread #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -4 lines) Patch
M cc/layers/picture_layer_impl.cc View 1 1 chunk +11 lines, -1 line 0 comments Download
M cc/resources/picture_layer_tiling.cc View 1 chunk +3 lines, -1 line 0 comments Download
M cc/resources/picture_layer_tiling_unittest.cc View 1 2 chunks +70 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 1 chunk +31 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
danakj
7 years, 8 months ago (2013-04-08 22:40:03 UTC) #1
danakj
On youtube (chromos build/impl side painting on) I'm seeing a layer with this transform which ...
7 years, 8 months ago (2013-04-08 22:40:52 UTC) #2
enne (OOO)
https://codereview.chromium.org/13820002/diff/1/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://codereview.chromium.org/13820002/diff/1/cc/resources/picture_layer_tiling_unittest.cc#newcode361 cc/resources/picture_layer_tiling_unittest.cc:361: TEST(PictureLayerTilingTest, EmptyStartingRect) { WTB unit test that makes sure ...
7 years, 8 months ago (2013-04-09 02:08:38 UTC) #3
danakj
https://codereview.chromium.org/13820002/diff/1/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://codereview.chromium.org/13820002/diff/1/cc/resources/picture_layer_tiling_unittest.cc#newcode361 cc/resources/picture_layer_tiling_unittest.cc:361: TEST(PictureLayerTilingTest, EmptyStartingRect) { On 2013/04/09 02:08:38, enne wrote: > ...
7 years, 8 months ago (2013-04-09 02:42:17 UTC) #4
danakj
3 tests now: 1) If the layer's rect is not invertible, then we should not ...
7 years, 8 months ago (2013-04-09 19:51:34 UTC) #5
danakj
+shawnsingh
7 years, 8 months ago (2013-04-09 19:52:29 UTC) #6
enne (OOO)
Sorry to ask for a test again, but I've been burned by too many "accidentally ...
7 years, 8 months ago (2013-04-09 21:09:47 UTC) #7
shawnsingh
I'm worried about the blanket assumption that "not invertible" implying "not visible". For example, if ...
7 years, 8 months ago (2013-04-09 21:30:31 UTC) #8
danakj
On 2013/04/09 21:30:31, shawnsingh wrote: > I'm worried about the blanket assumption that "not invertible" ...
7 years, 8 months ago (2013-04-09 22:46:18 UTC) #9
danakj
Added LayerTreeHostTestUninvertibleTransformDoesNotBlockActivation.RunMultiThread
7 years, 8 months ago (2013-04-10 00:14:24 UTC) #10
shawnsingh
> This would only work in super special cases though, no? It's using the identity ...
7 years, 8 months ago (2013-04-10 00:23:28 UTC) #11
danakj
Added TODO for shawn saying that we want a non-empty visible content rect sometimes, but ...
7 years, 8 months ago (2013-04-10 00:49:33 UTC) #12
enne (OOO)
Thanks for all the tests, lgtm
7 years, 8 months ago (2013-04-10 00:56:32 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/13820002/19001
7 years, 8 months ago (2013-04-10 01:01:38 UTC) #14
commit-bot: I haz the power
7 years, 8 months ago (2013-04-10 05:12:48 UTC) #15
Message was sent while issue was closed.
Change committed as 193329

Powered by Google App Engine
This is Rietveld 408576698