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

Issue 217313003: Stop displaying layers with non-invertible transforms. (Closed)

Created:
6 years, 9 months ago by avallee
Modified:
6 years, 8 months ago
Reviewers:
Ian Vollick, ajuma
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Stop displaying layers with non-invertible transforms. According to the CSS spec, if the transform of an object is non-invertible the object and its content do not get displayed. + Added transform_is_invertible to Layer and LayerImpl which gets calculated once when the transform is set. When pusing to another layer the transform invertibility isn't recalculated. + Added invertibility check to LTHC::SubtreeShouldBeSkipped. BUG=173726 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264341

Patch Set 1 #

Total comments: 14

Patch Set 2 : Added tests. #

Total comments: 6

Patch Set 3 : Skip only when the layer is not animated. Animated case in follow-up. #

Total comments: 4

Patch Set 4 : Fix test comment for cases 2-3. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -12 lines) Patch
M cc/layers/layer.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 3 chunks +3 lines, -1 line 0 comments Download
M cc/layers/layer_impl.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 3 chunks +15 lines, -1 line 0 comments Download
M cc/layers/layer_impl_unittest.cc View 1 1 chunk +30 lines, -0 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 1 chunk +31 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 3 chunks +17 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 chunks +70 lines, -10 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
avallee
ajuma@chromium.org: Please review changes in vollick@chromium.org: Please review changes in
6 years, 9 months ago (2014-03-28 18:35:13 UTC) #1
ajuma
Please add tests. https://codereview.chromium.org/217313003/diff/1/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/217313003/diff/1/cc/layers/layer_impl.cc#newcode1007 cc/layers/layer_impl.cc:1007: DLOG(ERROR) << "Can't change invertibility if ...
6 years, 9 months ago (2014-03-28 18:49:07 UTC) #2
avallee
Added tests. Let me know if you think there are more tests that make sense ...
6 years, 8 months ago (2014-04-15 18:53:25 UTC) #3
ajuma
https://codereview.chromium.org/217313003/diff/1/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/217313003/diff/1/cc/trees/layer_tree_host_common.cc#newcode482 cc/trees/layer_tree_host_common.cc:482: if (!layer->transform_is_invertible()) On 2014/04/15 18:53:25, avallee wrote: > On ...
6 years, 8 months ago (2014-04-15 19:45:10 UTC) #4
avallee
https://codereview.chromium.org/217313003/diff/1/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/217313003/diff/1/cc/trees/layer_tree_host_common.cc#newcode482 cc/trees/layer_tree_host_common.cc:482: if (!layer->transform_is_invertible()) On 2014/04/15 19:45:10, ajuma wrote: > On ...
6 years, 8 months ago (2014-04-16 18:20:56 UTC) #5
ajuma
lgtm, but vollick should have a look too. https://codereview.chromium.org/217313003/diff/40001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/217313003/diff/40001/cc/trees/layer_tree_host_common.cc#newcode511 cc/trees/layer_tree_host_common.cc:511: // ...
6 years, 8 months ago (2014-04-16 19:24:49 UTC) #6
avallee
https://codereview.chromium.org/217313003/diff/40001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/217313003/diff/40001/cc/trees/layer_tree_host_common.cc#newcode511 cc/trees/layer_tree_host_common.cc:511: // pre-raster. On 2014/04/16 19:24:49, ajuma wrote: > This ...
6 years, 8 months ago (2014-04-16 19:33:24 UTC) #7
Ian Vollick
On 2014/04/16 19:33:24, avallee wrote: > https://codereview.chromium.org/217313003/diff/40001/cc/trees/layer_tree_host_common.cc > File cc/trees/layer_tree_host_common.cc (right): > > https://codereview.chromium.org/217313003/diff/40001/cc/trees/layer_tree_host_common.cc#newcode511 > ...
6 years, 8 months ago (2014-04-16 19:37:14 UTC) #8
avallee
The CQ bit was checked by avallee@chromium.org
6 years, 8 months ago (2014-04-16 19:43:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avallee@chromium.org/217313003/80001
6 years, 8 months ago (2014-04-16 19:43:54 UTC) #10
commit-bot: I haz the power
6 years, 8 months ago (2014-04-16 23:23:30 UTC) #11
Message was sent while issue was closed.
Change committed as 264341

Powered by Google App Engine
This is Rietveld 408576698