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

Issue 11777008: cc: Use maximum tiling contents scales for picture layer scale (Closed)

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

Description

cc: Use maximum tiling contents scales for picture layer scale Due to the way the math works out for calculating which tiles to use for a given content rect, the content scale for a picture layer has to be the maximum of all the tilings on a layer. Currently, each layer only has one tiling, but this change also creates the infrastructure for adding different tilings over time and clamping contents scales to a minimum. NOTRY=true R=danakj@chromium.org BUG=155209 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175420

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address review comments #

Patch Set 3 : Ok, 1.f #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -36 lines) Patch
M cc/layer_impl.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M cc/layer_impl.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M cc/layer_tree_host_common.cc View 1 2 chunks +34 lines, -24 lines 0 comments Download
M cc/picture_layer_impl.h View 2 chunks +6 lines, -0 lines 0 comments Download
M cc/picture_layer_impl.cc View 1 2 4 chunks +45 lines, -12 lines 0 comments Download
M cc/picture_layer_tiling_set.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
enne (OOO)
7 years, 11 months ago (2013-01-06 03:39:09 UTC) #1
enne (OOO)
This pulls out part of https://codereview.chromium.org/11704002/ (generate more tilings) so that it can land as ...
7 years, 11 months ago (2013-01-06 03:39:59 UTC) #2
danakj
https://codereview.chromium.org/11777008/diff/1/cc/layer_impl.h File cc/layer_impl.h (right): https://codereview.chromium.org/11777008/diff/1/cc/layer_impl.h#newcode201 cc/layer_impl.h:201: virtual void calculateContentsScale( So, this never actually sets the ...
7 years, 11 months ago (2013-01-07 15:57:44 UTC) #3
enne (OOO)
https://codereview.chromium.org/11777008/diff/1/cc/layer_impl.h File cc/layer_impl.h (right): https://codereview.chromium.org/11777008/diff/1/cc/layer_impl.h#newcode201 cc/layer_impl.h:201: virtual void calculateContentsScale( On 2013/01/07 15:57:44, danakj wrote: > ...
7 years, 11 months ago (2013-01-07 17:00:01 UTC) #4
danakj
https://codereview.chromium.org/11777008/diff/1/cc/picture_layer_impl.cc File cc/picture_layer_impl.cc (right): https://codereview.chromium.org/11777008/diff/1/cc/picture_layer_impl.cc#newcode180 cc/picture_layer_impl.cc:180: float max_contents_scale = 1; On 2013/01/07 17:00:01, enne wrote: ...
7 years, 11 months ago (2013-01-07 17:04:29 UTC) #5
enne (OOO)
https://codereview.chromium.org/11777008/diff/1/cc/picture_layer_impl.cc File cc/picture_layer_impl.cc (right): https://codereview.chromium.org/11777008/diff/1/cc/picture_layer_impl.cc#newcode180 cc/picture_layer_impl.cc:180: float max_contents_scale = 1; On 2013/01/07 17:04:29, danakj wrote: ...
7 years, 11 months ago (2013-01-07 17:11:18 UTC) #6
danakj
On 2013/01/07 17:11:18, enne wrote: > https://codereview.chromium.org/11777008/diff/1/cc/picture_layer_impl.cc > File cc/picture_layer_impl.cc (right): > > https://codereview.chromium.org/11777008/diff/1/cc/picture_layer_impl.cc#newcode180 > ...
7 years, 11 months ago (2013-01-07 17:41:00 UTC) #7
enne (OOO)
On 2013/01/07 17:41:00, danakj wrote: > Ah, here it is: > http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=0_and_nullptr/NULL#0_and_nullptr/NULL Hrm. Ok, thanks. ...
7 years, 11 months ago (2013-01-07 17:46:13 UTC) #8
danakj
Thanks, I like the base class method a lot better now. LGTM
7 years, 11 months ago (2013-01-07 17:47:42 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/11777008/10001
7 years, 11 months ago (2013-01-07 17:49:06 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) interactive_ui_tests
7 years, 11 months ago (2013-01-07 19:06:43 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/11777008/10001
7 years, 11 months ago (2013-01-07 19:16:25 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) interactive_ui_tests
7 years, 11 months ago (2013-01-07 21:57:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/11777008/10001
7 years, 11 months ago (2013-01-07 23:21:06 UTC) #14
commit-bot: I haz the power
7 years, 11 months ago (2013-01-08 00:00:21 UTC) #15
Message was sent while issue was closed.
Change committed as 175420

Powered by Google App Engine
This is Rietveld 408576698