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

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: format Created 5 years, 1 month 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/resources/release_callback_impl.h ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index c3361195f3343782ac81a84cbe4db45747c17f59..ae813f08239bd414852168f2051699892c7f9f8f 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -162,7 +162,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;
@@ -181,7 +181,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);
@@ -194,7 +194,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);
@@ -412,7 +412,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);
@@ -508,7 +508,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;
« no previous file with comments | « cc/resources/release_callback_impl.h ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698