summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-23 21:23:21 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-23 21:23:21 +0000
commit2d1ecef7ccee6d4166c9b3290902a7266f59dd05 (patch)
treedfbfa656c4c5a1f7aac37e63cdbdc415ae62911f /content
parentf9ae4e71ee797605d08a160f6a0c08f09aa59964 (diff)
downloadchromium_src-2d1ecef7ccee6d4166c9b3290902a7266f59dd05.zip
chromium_src-2d1ecef7ccee6d4166c9b3290902a7266f59dd05.tar.gz
chromium_src-2d1ecef7ccee6d4166c9b3290902a7266f59dd05.tar.bz2
cc: Add "lost" field to the ReturnedResource type.
When a resource is lost in a parent compositor, we inform the child through the "lost" field in the ReturnedResource. The lost field is passed down through intermediate parent/child compositors to its final home. Lost resources are considered in use by the parent who lost them since you can not tell when you would be able to write to the texture safely ever again at that point. Tests: ResourceProviderTest.LostResourceInParent ResourceProviderTest.LostResourceInGrandParent ResourceProviderTest.LostMailboxInParent ResourceProviderTest.LostMailboxInGrandParent R=piman BUG=263069 Depends on: https://codereview.chromium.org/24078024/ Review URL: https://chromiumcodereview.appspot.com/24290003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224792 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/common/cc_messages.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/content/common/cc_messages.h b/content/common/cc_messages.h
index a3e06db..5c8b0b7 100644
--- a/content/common/cc_messages.h
+++ b/content/common/cc_messages.h
@@ -228,6 +228,7 @@ IPC_STRUCT_TRAITS_BEGIN(cc::ReturnedResource)
IPC_STRUCT_TRAITS_MEMBER(id)
IPC_STRUCT_TRAITS_MEMBER(sync_point)
IPC_STRUCT_TRAITS_MEMBER(count)
+ IPC_STRUCT_TRAITS_MEMBER(lost)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(cc::BeginFrameArgs)