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

Issue 11503005: cc: Refactor content scale/bounds into draw properties (Closed)

Created:
8 years ago by enne (OOO)
Modified:
8 years ago
Reviewers:
danakj, shawnsingh
CC:
chromium-reviews, cc-bugs_chromium.org, nduca
Visibility:
Public.

Description

cc: Refactor content scale/bounds into draw properties This change allows layer impls to manipulate their content scale. This will allow PictureLayerImpl to pick some contents scale based on the scales of their tilings, rather than being stuck at the contents scale of its PictureLayer. This also de-virtualizes all of the content scale/bounds functions and instead allows a layer to manipulate its draw properties in response to a bounds or contents scale change. BUG=155209 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173365

Patch Set 1 #

Total comments: 10

Patch Set 2 : Move contents scale/bounds out of draw props #

Patch Set 3 : Back to draw props with a TDOO #

Patch Set 4 : Fix shadowing #

Total comments: 10

Patch Set 5 : updateContentsScale => calculateContentsScale #

Total comments: 7

Patch Set 6 : Address more review comments #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -136 lines) Patch
M cc/contents_scaling_layer.h View 1 2 3 4 1 chunk +6 lines, -7 lines 0 comments Download
M cc/contents_scaling_layer.cc View 1 2 3 4 1 chunk +15 lines, -17 lines 0 comments Download
M cc/contents_scaling_layer_unittest.cc View 1 2 3 4 3 chunks +12 lines, -18 lines 0 comments Download
M cc/draw_properties.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M cc/image_layer.h View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M cc/image_layer.cc View 1 2 3 4 2 chunks +12 lines, -6 lines 0 comments Download
M cc/layer.h View 1 2 3 4 2 chunks +10 lines, -4 lines 0 comments Download
M cc/layer.cc View 1 2 3 4 3 chunks +15 lines, -12 lines 0 comments Download
M cc/layer_impl.h View 1 2 3 4 2 chunks +3 lines, -8 lines 0 comments Download
M cc/layer_impl.cc View 1 2 3 4 2 chunks +5 lines, -7 lines 0 comments Download
M cc/layer_tree_host_common.cc View 1 2 3 4 2 chunks +22 lines, -5 lines 0 comments Download
M cc/layer_tree_host_common_unittest.cc View 1 2 3 4 5 4 chunks +12 lines, -19 lines 0 comments Download
M cc/layer_tree_host_unittest.cc View 1 2 3 4 5 1 chunk +12 lines, -3 lines 0 comments Download
M cc/scrollbar_layer.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M cc/scrollbar_layer.cc View 1 2 3 4 1 chunk +13 lines, -5 lines 0 comments Download
M cc/scrollbar_layer_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M cc/test/tiled_layer_test_common.h View 1 2 3 4 2 chunks +10 lines, -5 lines 0 comments Download
M cc/test/tiled_layer_test_common.cc View 1 2 3 4 1 chunk +21 lines, -10 lines 0 comments Download
M cc/tiled_layer_unittest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
enne (OOO)
Here's a patch based on a previous discussion about refactoring content scales and bounds. These ...
8 years ago (2012-12-10 02:04:12 UTC) #1
shawnsingh
So I think I'm beginning to understand what's going on here. In my own words, ...
8 years ago (2012-12-11 21:54:05 UTC) #2
enne (OOO)
On 2012/12/11 21:54:05, shawnsingh wrote: > So I think I'm beginning to understand what's going ...
8 years ago (2012-12-11 23:23:44 UTC) #3
shawnsingh
> > I think this is not quite complete, and I think you are privileging ...
8 years ago (2012-12-12 00:40:31 UTC) #4
enne (OOO)
danakj: Went back to draw props with a TODO for removing didUpdateBounds. I'll take care ...
8 years ago (2012-12-13 21:41:50 UTC) #5
danakj
We already talked about this all, but my thoughts :) https://codereview.chromium.org/11503005/diff/11020/cc/contents_scaling_layer.cc File cc/contents_scaling_layer.cc (right): https://codereview.chromium.org/11503005/diff/11020/cc/contents_scaling_layer.cc#newcode20 ...
8 years ago (2012-12-14 20:37:23 UTC) #6
enne (OOO)
PTAL https://codereview.chromium.org/11503005/diff/11020/cc/contents_scaling_layer.cc File cc/contents_scaling_layer.cc (right): https://codereview.chromium.org/11503005/diff/11020/cc/contents_scaling_layer.cc#newcode20 cc/contents_scaling_layer.cc:20: void ContentsScalingLayer::updateContentsScale(float ideal_contents_scale) { On 2012/12/14 20:37:23, danakj ...
8 years ago (2012-12-14 22:06:05 UTC) #7
danakj
LGTM! https://codereview.chromium.org/11503005/diff/19001/cc/draw_properties.h File cc/draw_properties.h (right): https://codereview.chromium.org/11503005/diff/19001/cc/draw_properties.h#newcode80 cc/draw_properties.h:80: float contents_scale_x; descriptive comment please like the others ...
8 years ago (2012-12-14 22:58:40 UTC) #8
enne (OOO)
Thanks. :) https://codereview.chromium.org/11503005/diff/19001/cc/draw_properties.h File cc/draw_properties.h (right): https://codereview.chromium.org/11503005/diff/19001/cc/draw_properties.h#newcode80 cc/draw_properties.h:80: float contents_scale_x; On 2012/12/14 22:58:41, danakj wrote: ...
8 years ago (2012-12-14 23:06:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/11503005/18022
8 years ago (2012-12-14 23:06:35 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-15 02:25:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/11503005/24001
8 years ago (2012-12-16 00:44:53 UTC) #12
commit-bot: I haz the power
8 years ago (2012-12-16 04:52:55 UTC) #13
Message was sent while issue was closed.
Change committed as 173365

Powered by Google App Engine
This is Rietveld 408576698