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