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

Unified Diff: cc/resources/resource_provider.h

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Folded sync_point into sync_tokens Created 5 years, 2 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
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index df66372620cb6cb23deb653d73219caa08ae4738..1b3a081a164f58883827050962505950b2a64d7c 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -170,7 +170,7 @@ class CC_EXPORT ResourceProvider
// Sets whether resources need sync points set on them when returned to this
// child. Defaults to true.
- void SetChildNeedsSyncPoints(int child, bool needs_sync_points);
+ void SetChildNeedsSyncTokens(int child, bool needs_sync_tokens);
// Gets the child->parent resource ID map.
const ResourceIdMap& GetChildToParentMap(int child) const;
@@ -189,7 +189,7 @@ class CC_EXPORT ResourceProvider
// declaring which resources are in use. Use DeclareUsedResourcesFromChild
// after calling this method to do that. All calls to ReceiveFromChild should
// be followed by a DeclareUsedResourcesFromChild.
- // NOTE: if the sync_point is set on any TransferableResource, this will
+ // NOTE: if the sync_token is set on any TransferableResource, this will
// wait on it.
void ReceiveFromChild(
int child, const TransferableResourceArray& transferable_resources);
@@ -202,7 +202,7 @@ class CC_EXPORT ResourceProvider
// Receives resources from the parent, moving them from mailboxes. Resource
// IDs passed are in the child namespace.
- // NOTE: if the sync_point is set on any TransferableResource, this will
+ // NOTE: if the sync_token is set on any TransferableResource, this will
// wait on it.
void ReceiveReturnsFromParent(
const ReturnedResourceArray& transferable_resources);
@@ -420,7 +420,7 @@ class CC_EXPORT ResourceProvider
// Indicates if this resource may be used for a hardware overlay plane.
bool IsOverlayCandidate(ResourceId id);
- void WaitSyncPointIfNeeded(ResourceId id);
+ void WaitSyncTokenIfNeeded(ResourceId id);
static GLint GetActiveTextureUnit(gpu::gles2::GLES2Interface* gl);
@@ -516,7 +516,7 @@ class CC_EXPORT ResourceProvider
ResourceIdMap parent_to_child_map;
ReturnCallback return_callback;
bool marked_for_deletion;
- bool needs_sync_points;
+ bool needs_sync_tokens;
};
typedef base::hash_map<int, Child> ChildMap;

Powered by Google App Engine
This is Rietveld 408576698