cc: PictureLayerImpl with empty bounds should not have tiles
commiteda36f0f163d418975bf6971b324c69b185e2f47
authorboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 23 Oct 2013 08:15:31 +0000 (23 08:15 +0000)
committerboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 23 Oct 2013 08:15:31 +0000 (23 08:15 +0000)
tree751a525f78254392d40aa7bf9074a3a992998706
parent3a26676b8391879d763174c8ea4aeb4364c34aca
cc: PictureLayerImpl with empty bounds should not have tiles

If a PictureLayer bounds is set to from non-empty to empty,
PictureLayer::Update is skipped so the picture pile is not
updated. In this case, the PictureLayerImpl should not have
tilings.

Internal bug b/11288267

BUG=276988
TEST=PictureLayerImplTest.EmptyBoundNonEmptyPile

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230368 0039d316-1c4b-4281-b951-d872f2087c98
cc/cc_tests.gyp
cc/layers/picture_layer.cc
cc/layers/picture_layer_unittest.cc [new file with mode: 0644]
cc/test/fake_picture_layer_impl.h