cc: Don't claim ownership of resources in the pending tree.
commitb435e7af416508c9e7e75a8f6a9a11f5bc539cda
authordanakj <danakj@chromium.org>
Mon, 20 Apr 2015 22:41:41 +0000 (20 15:41 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 20 Apr 2015 22:41:55 +0000 (20 22:41 +0000)
tree77ead399cd9b21336704ebd4bde4dea75ad0c1e5
parent0d726adc64138095e834c962617a7ec2ffd447d0
cc: Don't claim ownership of resources in the pending tree.

DelegatedRendererLayerImpl will claim ownership of resources in a frame,
and this makes unused resources from the previous frame be returned to
the child.

However, this was being done on the pending tree, but the previous frame
was still in the active tree and its resources would be returned early.
Instead, delay telling the ResourceProvider about the frame's resources
until the frame replaces the resources on the active tree.

R=enne, piman@chromium.org
BUG=475894

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

Cr-Commit-Position: refs/heads/master@{#325927}
cc/layers/delegated_renderer_layer_impl.cc
cc/layers/delegated_renderer_layer_impl.h
cc/trees/layer_tree_host_unittest_delegated.cc