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

Unified Diff: cc/resource_provider.h

Issue 11638028: Mailbox support for texture layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Formatting Created 8 years 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/resource_provider.cc » ('j') | cc/resource_provider.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resource_provider.h
diff --git a/cc/resource_provider.h b/cc/resource_provider.h
index d90d2244340edfdc731913b8505f1dde6c5e4005..3b99ed354f2cbcbca7d98c606af804061d69583e 100644
--- a/cc/resource_provider.h
+++ b/cc/resource_provider.h
@@ -6,6 +6,7 @@
#define CC_RESOURCE_PROVIDER_H_
#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"
@@ -19,6 +20,7 @@
#include "ui/gfx/size.h"
#include <deque>
#include <vector>
+#include <string>
danakj 2013/01/02 16:17:22 Stick all the <> headers above the "" headers whil
alexst (slow to review) 2013/01/02 19:31:35 Done.
namespace WebKit {
class WebGraphicsContext3D;
@@ -82,6 +84,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);
+
void deleteResource(ResourceId);
// Update pixels from image, copying sourceRect (in image) into destRect (in the resource).
« no previous file with comments | « no previous file | cc/resource_provider.cc » ('j') | cc/resource_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698