Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1901)

Unified Diff: cc/resource_provider.h

Issue 12335088: Move sync point from TransferResourceList to individual TransferResources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/delegating_renderer_unittest.cc ('k') | cc/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resource_provider.h
diff --git a/cc/resource_provider.h b/cc/resource_provider.h
index e63093c654e850966c6e22e94f2e972e5b4a3867..81c7d96b3ea6763e1c50692b36dbbeed166823f3 100644
--- a/cc/resource_provider.h
+++ b/cc/resource_provider.h
@@ -123,27 +123,27 @@ public:
// mailboxes and serializing meta-data into TransferableResources.
// Resources are not removed from the ResourceProvider, but are marked as
// "in use".
- void prepareSendToParent(const ResourceIdArray&, TransferableResourceList*);
+ void prepareSendToParent(const ResourceIdArray& resources, TransferableResourceArray* transferableResources);
// Prepares resources to be transfered back to the child, moving them to
// mailboxes and serializing meta-data into TransferableResources.
// Resources are removed from the ResourceProvider. Note: the resource IDs
// passed are in the parent namespace and will be translated to the child
// namespace when returned.
- void prepareSendToChild(int child, const ResourceIdArray&, TransferableResourceList*);
+ void prepareSendToChild(int child, const ResourceIdArray& resources, TransferableResourceArray* transferableResources);
// Receives resources from a child, moving them from mailboxes. Resource IDs
// passed are in the child namespace, and will be translated to the parent
// namespace, added to the child->parent map.
- // NOTE: if the syncPoint filed in TransferableResourceList is set, this
- // will wait on it.
- void receiveFromChild(int child, const TransferableResourceList&);
+ // NOTE: if the sync_point is set on any TransferableResource, this will
+ // wait on it.
+ void receiveFromChild(int child, const TransferableResourceArray& transferableResources);
// Receives resources from the parent, moving them from mailboxes. Resource IDs
// passed are in the child namespace.
- // NOTE: if the syncPoint filed in TransferableResourceList is set, this
- // will wait on it.
- void receiveFromParent(const TransferableResourceList&);
+ // NOTE: if the sync_point is set on any TransferableResource, this will
+ // wait on it.
+ void receiveFromParent(const TransferableResourceArray& transferableResources);
// Bind the given GL resource to a texture target for sampling using the
// specified filter for both minification and magnification. The resource
« no previous file with comments | « cc/delegating_renderer_unittest.cc ('k') | cc/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698