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

Issue 11017044: Remove root layer specialness in calculateDrawTransforms (Closed)

Created:
8 years, 2 months ago by shawnsingh
Modified:
8 years, 1 month ago
Reviewers:
danakj, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, danakj
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Remove root layer specialness in calculateDrawTransforms This patch is step 2 in removing root layer specialness. The previous patch removed root layer specialness from code outside of CCLayerTreeHostCommon, this patch removes it from within CCLayerTreeHostCommon. One subtle semantics change occurs with this patch, that only affects tests and not real-world code: The root renderSurface now re-parents the root layer's drawTransform. In practice, the root layer's drawTransform is always an identity matrix, so it does not matter. BUG=154442 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164723

Patch Set 1 #

Total comments: 3

Patch Set 2 : updated to tip of tree, fixes unit tests as needed #

Total comments: 1

Patch Set 3 : removed bogus comment #

Total comments: 1

Patch Set 4 : Added assertion that rounding does not affect exact coverage testing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -159 lines) Patch
M cc/layer_tree_host_common.cc View 1 2 14 chunks +66 lines, -56 lines 0 comments Download
M cc/layer_tree_host_common_unittest.cc View 1 22 chunks +59 lines, -35 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 4 chunks +23 lines, -22 lines 0 comments Download
M cc/layer_tree_host_unittest.cc View 1 2 3 6 chunks +46 lines, -38 lines 0 comments Download
M cc/test/layer_test_common.cc View 1 2 3 2 chunks +24 lines, -1 line 0 comments Download
M cc/test/layer_tree_test_common.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/layer_tree_test_common.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
shawnsingh
Current status: this first patch is the proposed complete change, but unit tests are not ...
8 years, 2 months ago (2012-10-09 22:16:02 UTC) #1
danakj
I think this is really cool Shawn. In practice, I don't think anyone even uses ...
8 years, 2 months ago (2012-10-09 22:21:53 UTC) #2
enne (OOO)
https://codereview.chromium.org/11017044/diff/1/cc/CCLayerTreeHostCommon.cpp File cc/CCLayerTreeHostCommon.cpp (right): https://codereview.chromium.org/11017044/diff/1/cc/CCLayerTreeHostCommon.cpp#newcode226 cc/CCLayerTreeHostCommon.cpp:226: if (!layer->parent()) On 2012/10/09 22:21:54, danakj wrote: > <3 ...
8 years, 2 months ago (2012-10-15 18:29:45 UTC) #3
shawnsingh
On 2012/10/15 18:29:45, enne wrote: > https://codereview.chromium.org/11017044/diff/1/cc/CCLayerTreeHostCommon.cpp > File cc/CCLayerTreeHostCommon.cpp (right): > > https://codereview.chromium.org/11017044/diff/1/cc/CCLayerTreeHostCommon.cpp#newcode226 > ...
8 years, 2 months ago (2012-10-15 18:43:37 UTC) #4
danakj
On Mon, Oct 15, 2012 at 2:43 PM, <shawnsingh@chromium.org> wrote: > On 2012/10/15 18:29:45, enne ...
8 years, 2 months ago (2012-10-15 18:50:14 UTC) #5
shawnsingh
Next patch coming in a moment, has the following changes compared to the previous version: ...
8 years, 1 month ago (2012-10-25 23:38:26 UTC) #6
shawnsingh
I'm verifying locally, but I really don't think those layout/memory failures have anything to do ...
8 years, 1 month ago (2012-10-26 17:51:38 UTC) #7
enne (OOO)
http://codereview.chromium.org/11017044/diff/8001/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): http://codereview.chromium.org/11017044/diff/8001/cc/layer_tree_host_common.cc#newcode316 cc/layer_tree_host_common.cc:316: // (i.e. it would still compensate for root layer's ...
8 years, 1 month ago (2012-10-26 19:33:30 UTC) #8
shawnsingh
On 2012/10/26 19:33:30, enne wrote: > http://codereview.chromium.org/11017044/diff/8001/cc/layer_tree_host_common.cc > File cc/layer_tree_host_common.cc (right): > > http://codereview.chromium.org/11017044/diff/8001/cc/layer_tree_host_common.cc#newcode316 > ...
8 years, 1 month ago (2012-10-26 19:51:29 UTC) #9
enne (OOO)
http://codereview.chromium.org/11017044/diff/22001/cc/test/layer_test_common.cc File cc/test/layer_test_common.cc (right): http://codereview.chromium.org/11017044/diff/22001/cc/test/layer_test_common.cc#newcode25 cc/test/layer_test_common.cc:25: cc::IntRect quadRect = cc::MathUtil::mapClippedRect(quad->sharedQuadState()->quadTransform, cc::IntRect(quad->quadRect())); This is wrong. The ...
8 years, 1 month ago (2012-10-26 20:33:20 UTC) #10
shawnsingh
On 2012/10/26 20:33:20, enne wrote: > http://codereview.chromium.org/11017044/diff/22001/cc/test/layer_test_common.cc > File cc/test/layer_test_common.cc (right): > > http://codereview.chromium.org/11017044/diff/22001/cc/test/layer_test_common.cc#newcode25 > ...
8 years, 1 month ago (2012-10-26 21:27:25 UTC) #11
enne (OOO)
In that case, the math here needs to be fixed. mapClippedRect does an implicit enclosingIntRect, ...
8 years, 1 month ago (2012-10-26 22:15:25 UTC) #12
shawnsingh
On 2012/10/26 22:15:25, enne wrote: > In that case, the math here needs to be ...
8 years, 1 month ago (2012-10-29 17:57:59 UTC) #13
enne (OOO)
lgtm
8 years, 1 month ago (2012-10-29 18:02:11 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shawnsingh@chromium.org/11017044/30001
8 years, 1 month ago (2012-10-29 18:03:28 UTC) #15
commit-bot: I haz the power
8 years, 1 month ago (2012-10-29 19:57:17 UTC) #16
Change committed as 164723

Powered by Google App Engine
This is Rietveld 408576698