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

Issue 634683003: Converted LayerImpl::bounds() to return SizeF. (Closed)

Created:
6 years, 2 months ago by bokan
Modified:
6 years, 2 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Converted LayerImpl::bounds() to return SizeF. Since bounds includes bounds_delta, which is SizeF, it makes sense to return the floating point sum of these two values. In call sites broken by the change, the returned value is converted to Size using ToCeiledSize to preserve the current snapping behavior, though in most (all?) these cases the layer bounds are expected to be integral anyway. BUG= Committed: https://crrev.com/c7935852d9590e2456e92c4ad2d0b48c816ec5ed Cr-Commit-Position: refs/heads/master@{#298439}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -116 lines) Patch
M cc/debug/debug_rect_history.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/heads_up_display_layer_impl.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/layer_impl.h View 2 chunks +1 line, -4 lines 0 comments Download
M cc/layers/layer_impl.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layers/painted_scrollbar_layer_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/picture_image_layer_impl_unittest.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M cc/layers/picture_layer.cc View 2 chunks +3 lines, -1 line 0 comments Download
M cc/layers/picture_layer_impl.cc View 3 chunks +7 lines, -3 lines 0 comments Download
M cc/layers/picture_layer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/ui_resource_layer_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M cc/layers/ui_resource_layer_impl_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M cc/test/layer_tree_json_parser.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/trees/damage_tracker.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M cc/trees/damage_tracker_unittest.cc View 5 chunks +10 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 35 chunks +108 lines, -34 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 22 chunks +22 lines, -22 lines 0 comments Download
M cc/trees/occlusion_tracker_unittest.cc View 4 chunks +8 lines, -3 lines 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (4 generated)
bokan
ptal.
6 years, 2 months ago (2014-10-06 23:11:42 UTC) #2
aelias_OOO_until_Jul13
lgtm
6 years, 2 months ago (2014-10-06 23:34:26 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634683003/1
6 years, 2 months ago (2014-10-07 01:17:39 UTC) #5
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 2 months ago (2014-10-07 03:22:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634683003/1
6 years, 2 months ago (2014-10-07 10:32:36 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as 890a31ac8a1477389b7757131738aed5914099f8
6 years, 2 months ago (2014-10-07 10:33:13 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/c7935852d9590e2456e92c4ad2d0b48c816ec5ed Cr-Commit-Position: refs/heads/master@{#298439}
6 years, 2 months ago (2014-10-07 10:34:06 UTC) #11
enne (OOO)
I'm not very keen on this patch. Also, there's no bug listed here. Is this ...
6 years, 2 months ago (2014-10-07 17:29:12 UTC) #12
bokan
On 2014/10/07 17:29:12, enne wrote: > I'm not very keen on this patch. > > ...
6 years, 2 months ago (2014-10-07 18:06:17 UTC) #13
danakj
On Tue, Oct 7, 2014 at 2:06 PM, <bokan@chromium.org> wrote: > On 2014/10/07 17:29:12, enne ...
6 years, 2 months ago (2014-10-07 18:41:58 UTC) #14
bokan
On 2014/10/07 18:41:58, danakj wrote: > On Tue, Oct 7, 2014 at 2:06 PM, <mailto:bokan@chromium.org> ...
6 years, 2 months ago (2014-10-07 19:02:40 UTC) #15
aelias_OOO_until_Jul13
From the point of view of scrolling, the viewport is not device_viewport_size, but rather the ...
6 years, 2 months ago (2014-10-07 19:05:20 UTC) #16
aelias_OOO_until_Jul13
Also, I apologize for not cc'ing you folks on initial review of this patch.
6 years, 2 months ago (2014-10-07 19:57:17 UTC) #17
danakj
Thanks for the context. I think this seems like a very large hammer to fix ...
6 years, 2 months ago (2014-10-07 20:47:45 UTC) #18
aelias_OOO_until_Jul13
I'm not sure I agree the hammer is that large. Although this technically affects all ...
6 years, 2 months ago (2014-10-07 21:14:59 UTC) #19
enne (OOO)
I very much agree with Dana. I think this looks small, but it's something that ...
6 years, 2 months ago (2014-10-07 21:20:05 UTC) #20
aelias_OOO_until_Jul13
On 2014/10/07 at 21:20:05, enne wrote: > I very much agree with Dana. I think ...
6 years, 2 months ago (2014-10-07 21:34:34 UTC) #21
danakj
On 2014/10/07 21:34:34, aelias wrote: > On 2014/10/07 at 21:20:05, enne wrote: > > I ...
6 years, 2 months ago (2014-10-08 20:59:44 UTC) #22
aelias_OOO_until_Jul13
> How does that really differ from having LayerImpl::FixedContainerSizeDelta? I see that used in the ...
6 years, 2 months ago (2014-10-08 21:16:25 UTC) #23
danakj
On Wed, Oct 8, 2014 at 5:16 PM, <aelias@chromium.org> wrote: > How does that really ...
6 years, 2 months ago (2014-10-08 21:28:50 UTC) #24
aelias_OOO_until_Jul13
On 2014/10/08 at 21:28:50, danakj wrote: > On Wed, Oct 8, 2014 at 5:16 PM, ...
6 years, 2 months ago (2014-10-08 21:52:44 UTC) #25
aelias_OOO_until_Jul13
6 years, 2 months ago (2014-10-08 21:59:36 UTC) #26
Message was sent while issue was closed.
> Also the if (present) useonething; else
> useanother; inside of it makes understanding behaviour at every call site
> more complicated.

Yeah, you're right about that.  On second thought, we could keep bounds_delta_
and just have bounds() and BoundsForScrolling() both sum in the same way we do
today, except that bounds() would additionally snap to int.

Powered by Google App Engine
This is Rietveld 408576698