Converted LayerImpl::bounds() to return SizeF.
commitc7935852d9590e2456e92c4ad2d0b48c816ec5ed
authorbokan <bokan@chromium.org>
Tue, 7 Oct 2014 10:33:05 +0000 (7 03:33 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Oct 2014 10:33:28 +0000 (7 10:33 +0000)
tree6ab0e88b8d6df69b953d99fb21ee5d021d4202c5
parent72b343fbeb63c67cd80c1cfa5a866b3360f9ca92
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=

Review URL: https://codereview.chromium.org/634683003

Cr-Commit-Position: refs/heads/master@{#298439}
26 files changed:
cc/debug/debug_rect_history.cc
cc/layers/delegated_renderer_layer_impl.cc
cc/layers/heads_up_display_layer_impl.cc
cc/layers/layer_impl.cc
cc/layers/layer_impl.h
cc/layers/layer_impl_unittest.cc
cc/layers/painted_scrollbar_layer_impl.cc
cc/layers/picture_image_layer_impl_unittest.cc
cc/layers/picture_layer.cc
cc/layers/picture_layer_impl.cc
cc/layers/picture_layer_unittest.cc
cc/layers/ui_resource_layer_impl.cc
cc/layers/ui_resource_layer_impl_unittest.cc
cc/test/layer_tree_json_parser.cc
cc/trees/damage_tracker.cc
cc/trees/damage_tracker_unittest.cc
cc/trees/layer_tree_host_common_unittest.cc
cc/trees/layer_tree_host_impl.cc
cc/trees/layer_tree_host_impl_unittest.cc
cc/trees/layer_tree_host_unittest.cc
cc/trees/layer_tree_host_unittest_scroll.cc
cc/trees/layer_tree_impl.cc
cc/trees/layer_tree_impl.h
cc/trees/layer_tree_impl_unittest.cc
cc/trees/occlusion_tracker_unittest.cc
cc/trees/tree_synchronizer_unittest.cc