Refactor delta/sent_delta logic into self-contained abstraction.
commit58eec0810c6412fb9debb83754bd0e5a65cecdc6
authoraelias <aelias@chromium.org>
Thu, 4 Dec 2014 01:04:40 +0000 (3 17:04 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 4 Dec 2014 01:06:00 +0000 (4 01:06 +0000)
tree8c36e88e33ce9728121b212eb285ffaddac26638
parent6657c7a9f11b17e3a378b0bb2112ecc314ec9cad
Refactor delta/sent_delta logic into self-contained abstraction.

This patch updates page scale to use a new SyncedProperty abstraction.  This
is shared between the pending and active trees and contains all page scale state
on the impl side except for the min/max limits.  Its API only exposes those
operations that are encouraged: for example, the raw main-thread originating value
can no longer be used by accident.

This patch should be a no-op.  In future patches, I intend to make scroll offsets
and top controls use this abstraction as well.

NOTRY=true
BUG=

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

Cr-Commit-Position: refs/heads/master@{#306736}
17 files changed:
cc/BUILD.gn
cc/base/synced_property.h [new file with mode: 0644]
cc/cc.gyp
cc/input/top_controls_manager_unittest.cc
cc/layers/layer_impl.cc
cc/layers/picture_layer_impl_unittest.cc
cc/test/fake_layer_tree_host_impl.cc
cc/trees/layer_tree_host.cc
cc/trees/layer_tree_host_common_perftest.cc
cc/trees/layer_tree_host_impl.cc
cc/trees/layer_tree_host_impl.h
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