Derive draw transforms from property trees.
commitb169ff621becc01edc5b4b0671fcbf1fbd84e114
authorvollick <vollick@chromium.org>
Tue, 10 Feb 2015 01:22:33 +0000 (9 17:22 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 10 Feb 2015 01:23:22 +0000 (10 01:23 +0000)
tree1628c9b93f3e41341702171b1575b2e8c6c092e4
parent96e860437ba381c544aa28e06052cae2b4c219f2
Derive draw transforms from property trees.

This patch computes draw transforms (aka target space
transforms) in terms of the property trees and verifies
that the match those computed by CDP.

This required implementing scroll snapping and
refactoring transform updates so that scroll offset and
transform updates can easily be updated (and snapped)
without a full tree build.

BUG=386810

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

Cr-Commit-Position: refs/heads/master@{#315466}
13 files changed:
cc/layers/layer.cc
cc/trees/draw_property_utils.cc
cc/trees/layer_tree_host_common.cc
cc/trees/property_tree.cc
cc/trees/property_tree.h
cc/trees/property_tree_builder.cc
cc/trees/property_tree_unittest.cc
ui/gfx/transform.cc
ui/gfx/transform.h
ui/gfx/transform_unittest.cc
ui/gfx/transform_util.cc
ui/gfx/transform_util.h
ui/gfx/transform_util_unittest.cc