cc: refcount resources as we send them to the parent
commit2d28d0a9a42b0e2ffeacfcfe591c89323f9fea23
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 17 Aug 2013 13:53:11 +0000 (17 13:53 +0000)
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 17 Aug 2013 13:53:11 +0000 (17 13:53 +0000)
tree5543ee9b0e66223dea79c615727a89d1ffccc5ae
parent640fbcb08c75b455374db799f3fd4ae277d685a5
cc: refcount resources as we send them to the parent

This allows us to fully specify the resources used by the frame, so that we can:
- allow more than one frame in flight
- allow duplicating the frame for aura::Window::RecreateLayers

For every frame we generate, we increase the "exported_count" in the child.
Every time we import the resources for a frame, we increase the "imported count"
in the parent. The contract is that we return resources exactly once for every
time it's exported.

BUG=263068

Review URL: https://chromiumcodereview.appspot.com/23023005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218173 0039d316-1c4b-4281-b951-d872f2087c98
cc/layers/delegated_renderer_layer.cc
cc/output/delegating_renderer_unittest.cc
cc/resources/resource_provider.cc
cc/resources/resource_provider.h
cc/resources/resource_provider_unittest.cc
cc/trees/layer_tree_host_unittest_delegated.cc