cc: Fix visible rects of animated layers with singular transforms
commita92fdc171986e8582bd945051c0acf60aa7969dc
authorajuma <ajuma@chromium.org>
Tue, 31 Mar 2015 22:47:41 +0000 (31 15:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 31 Mar 2015 22:48:36 +0000 (31 22:48 +0000)
treec19c7bbe0a441b3db51310b871219d0ee8486de2
parenta11510d8e5175aa451f11b183a6668f581b4ec60
cc: Fix visible rects of animated layers with singular transforms

Layers with singular transforms are usually skipped when computing
visible content rects. However, animated layers with singular
transforms cannot be skipped, since their transforms may become
non-singular during the animation (so these layers still need to
be recorded).

Currently, CalcDrawProps treats such layers as fully visible if
they have a non-empty visible rect in clipped target space. Layers
with an empty visible rect in clipped target space are treated as
having an empty visible content rect. This CL makes property trees
match CDP's behavior.

BUG=470244

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

Cr-Commit-Position: refs/heads/master@{#323132}
cc/trees/draw_property_utils.cc
cc/trees/layer_tree_host_common_unittest.cc