cc: Unify the occlusion access by adding an ability to scale transform.
commit61c35e8db648a01dc75b7ab04af454e0fec9dfba
authorvmpstr <vmpstr@chromium.org>
Tue, 7 Oct 2014 06:34:33 +0000 (6 23:34 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Oct 2014 06:34:46 +0000 (7 06:34 +0000)
tree8a3f3110449920a67aaedb9ad9967f22d9bccee8
parent541ad2c748eda43323ef93cae62ed3974f3a330c
cc: Unify the occlusion access by adding an ability to scale transform.

This change adds GetOcclusionWithGivenDrawTransform to Occlusion. This
allows us to get occlusion tracker out of the layer by always passing
an occlusion with a draw transform. Then, each layer can still get
a more convenient version of the occlusion by providing a different
draw transform.

R=danakj

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

Cr-Commit-Position: refs/heads/master@{#298403}
cc/BUILD.gn
cc/cc_tests.gyp
cc/layers/picture_layer_impl.cc
cc/trees/occlusion.cc
cc/trees/occlusion.h
cc/trees/occlusion_unittest.cc [new file with mode: 0644]