Index: cc/resource_provider.h |
diff --git a/cc/resource_provider.h b/cc/resource_provider.h |
index d90d2244340edfdc731913b8505f1dde6c5e4005..c96c5a88fda441aece75c0649266217837475063 100644 |
--- a/cc/resource_provider.h |
+++ b/cc/resource_provider.h |
@@ -5,7 +5,12 @@ |
#ifndef CC_RESOURCE_PROVIDER_H_ |
#define CC_RESOURCE_PROVIDER_H_ |
+#include <deque> |
+#include <string> |
+#include <vector> |
+ |
#include "base/basictypes.h" |
+#include "base/callback.h" |
#include "base/hash_tables.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/threading/thread_checker.h" |
@@ -17,8 +22,6 @@ |
#include "third_party/skia/include/core/SkBitmap.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
#include "ui/gfx/size.h" |
-#include <deque> |
-#include <vector> |
namespace WebKit { |
class WebGraphicsContext3D; |
@@ -82,6 +85,9 @@ public: |
// Wraps an external texture into a GL resource. |
ResourceId createResourceFromExternalTexture(unsigned textureId); |
+ // Wraps an external texture mailbox into a GL resource. |
+ ResourceId createResourceFromTextureMailbox(const std::string& mailboxName, const base::Callback<void(unsigned)>& releaseCallback); |
jamesr
2013/01/07 21:11:49
this is what I was talking about. ResourceProvide
alexst (slow to review)
2013/01/07 21:38:47
I agree it would look better.
Maybe splitting the
|
+ |
void deleteResource(ResourceId); |
// Update pixels from image, copying sourceRect (in image) into destRect (in the resource). |