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); |