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

Unified Diff: cc/resources/resource_provider.h

Issue 1707143002: Added methods to generate sync tokens for resource id(s). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index 688c6076f82a4d6caf899ec6f911c11a3db926ef..ea5b3e1b4269e830639d8df60d45d06c7c617c4a 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -159,9 +159,9 @@ class CC_EXPORT ResourceProvider
const uint8_t* image,
const gfx::Size& image_size);
- // Only flush the command buffer if supported.
- // Returns true if the shallow flush occurred, false otherwise.
- bool ShallowFlushIfSupported();
+ // Generates sync tokesn for resources which need a sync token.
+ void GenerateSyncTokenForResource(ResourceId resource_id);
+ void GenerateSyncTokenForResources(const ResourceIdArray& resource_ids);
// Creates accounting for a child. Returns a child ID.
int CreateChild(const ReturnCallback& return_callback);

Powered by Google App Engine
This is Rietveld 408576698