diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-08 19:05:55 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-08 19:05:55 +0000 |
commit | 8808d027f5310dde7f606efc354188b13c15cd3a (patch) | |
tree | edbca67bd1e5bbcb5694ae936bd04c925e542cc6 /cc/test/fake_delegated_renderer_layer_impl.cc | |
parent | 45c4fb1ff567ccf626174e3f83a82fffe35e90bb (diff) | |
download | chromium_src-8808d027f5310dde7f606efc354188b13c15cd3a.zip chromium_src-8808d027f5310dde7f606efc354188b13c15cd3a.tar.gz chromium_src-8808d027f5310dde7f606efc354188b13c15cd3a.tar.bz2 |
cc: Invalid frames should not cause damage in DelegatedRendererLayer.
If we don't use the frame, then don't damage the layer and try to draw
the frame, we'll just draw what we already drew.
R=piman@chromium.org
BUG=
Review URL: https://codereview.chromium.org/22700002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216419 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_delegated_renderer_layer_impl.cc')
-rw-r--r-- | cc/test/fake_delegated_renderer_layer_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/test/fake_delegated_renderer_layer_impl.cc b/cc/test/fake_delegated_renderer_layer_impl.cc index 8ae1fa5..7985121 100644 --- a/cc/test/fake_delegated_renderer_layer_impl.cc +++ b/cc/test/fake_delegated_renderer_layer_impl.cc @@ -40,7 +40,8 @@ void FakeDelegatedRendererLayerImpl::SetFrameDataForRenderPasses( } TransferableResourceArray resources_for_ack; - SetFrameData(delegated_frame.Pass(), gfx::RectF(), &resources_for_ack); + SetFrameData(delegated_frame.Pass(), gfx::RectF()); + CollectUnusedResources(&resources_for_ack); } } // namespace cc |