Use ScrollOffset instead of vector2d to track scroll offset in cc
commitf57925d399f2eda19fdaab9191257e51a3af04a0
authormiletus <miletus@chromium.org>
Wed, 1 Oct 2014 19:38:13 +0000 (1 12:38 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 1 Oct 2014 19:38:44 +0000 (1 19:38 +0000)
treefe4a309c3f5af49155e2711671f644fc4fb130e0
parentcc40100c7c9b5be5ae9f13b888e875d63f2844cd
Use ScrollOffset instead of vector2d to track scroll offset in cc

This is for preparing converting blink side scroll offset to be double
type. Assuming blink side starts to use double scroll offset, it can
be passed back from main/blink to compositor without converting to int
type.

BUG=414283

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

Cr-Commit-Position: refs/heads/master@{#297692}
48 files changed:
cc/animation/layer_animation_controller.cc
cc/animation/layer_animation_controller.h
cc/animation/layer_animation_controller_unittest.cc
cc/animation/layer_animation_value_observer.h
cc/animation/layer_animation_value_provider.h
cc/animation/scroll_offset_animation_curve.cc
cc/animation/scroll_offset_animation_curve.h
cc/animation/scroll_offset_animation_curve_unittest.cc
cc/base/math_util.cc
cc/base/math_util.h
cc/blink/web_layer_impl.cc
cc/blink/web_scroll_offset_animation_curve_impl.cc
cc/input/layer_scroll_offset_delegate.h
cc/layers/layer.cc
cc/layers/layer.h
cc/layers/layer_impl.cc
cc/layers/layer_impl.h
cc/layers/layer_impl_unittest.cc
cc/layers/layer_unittest.cc
cc/layers/picture_layer_impl_perftest.cc
cc/layers/scrollbar_layer_unittest.cc
cc/test/animation_test_common.cc
cc/test/animation_test_common.h
cc/trees/layer_tree_host.cc
cc/trees/layer_tree_host_common.cc
cc/trees/layer_tree_host_common.h
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_perftest.cc
cc/trees/layer_tree_host_unittest.cc
cc/trees/layer_tree_host_unittest_animation.cc
cc/trees/layer_tree_host_unittest_damage.cc
cc/trees/layer_tree_host_unittest_scroll.cc
cc/trees/layer_tree_impl.cc
cc/trees/layer_tree_impl.h
content/browser/android/in_process/synchronous_compositor_impl.cc
content/browser/android/in_process/synchronous_compositor_impl.h
ui/gfx/BUILD.gn
ui/gfx/geometry/BUILD.gn
ui/gfx/geometry/safe_integer_conversions.h
ui/gfx/geometry/safe_integer_conversions_unittest.cc
ui/gfx/geometry/scroll_offset.cc [new file with mode: 0644]
ui/gfx/geometry/scroll_offset.h [new file with mode: 0644]
ui/gfx/geometry/scroll_offset_unittest.cc [new file with mode: 0644]
ui/gfx/gfx.gyp
ui/gfx/gfx_tests.gyp
ui/gfx/test/gfx_util.cc