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

Unified Diff: cc/resources/resource_provider.h

Issue 1666203003: Separate out resource mailbox creation and fix synchronization issue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed assumption that sync token is cleared 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
« no previous file with comments | « no previous file | 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 1913ef0ae7d2ad4a2be4354e40f15a54f88e1e40..00c5da2577198e6841f3ce6bb35627e72b8519a3 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -537,6 +537,12 @@ class CC_EXPORT ResourceProvider
static void PopulateSkBitmapWithResource(SkBitmap* sk_bitmap,
const Resource* resource);
+ // This creates the resource mailbox and also binds the texture if dirty. This
+ // is meant to be called lazily internally and returns true if a mailbox
+ // was created or if the resource was bound.
+ bool CreateMailboxAndBindResource(gpu::gles2::GLES2Interface* gl,
+ Resource* resource);
+
void TransferResource(gpu::gles2::GLES2Interface* gl,
ResourceId id,
TransferableResource* resource);
« no previous file with comments | « no previous file | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698