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

Unified Diff: cc/resources/resource_provider.h

Issue 1674313002: Reland of Separate out resource mailbox creation and fix synchronization issue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Applied fixes 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 578fd592cd6acd8783c46cdb65f2ee9a9276a0cd..79a78f4cf2f695abf5f3248847ce42650b5838ea 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -546,6 +546,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