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

Unified Diff: content/public/browser/android/compositor.h

Issue 11090075: Expose the WebGraphicsContext3D for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 2 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 | « content/browser/renderer_host/image_transport_factory_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/android/compositor.h
diff --git a/content/public/browser/android/compositor.h b/content/public/browser/android/compositor.h
index 9f158cf2ab210ecd0e66b504cfc46ab74a1cd6c5..021624d67be87d550060d992ba0c1a0ca94d376a 100644
--- a/content/public/browser/android/compositor.h
+++ b/content/public/browser/android/compositor.h
@@ -10,6 +10,12 @@
#include "ui/gfx/rect.h"
#include "ui/gfx/size.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h"
+
+namespace gfx {
+class JavaBitmap;
+}
+
namespace WebKit {
class WebLayer;
}
@@ -51,6 +57,19 @@ class Compositor {
// Composite immediately. Used in single-threaded mode.
virtual void Composite() = 0;
+ // Generates an OpenGL texture and returns a texture handle. May return 0
+ // if the current context is lost.
+ virtual WebKit::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) = 0;
+
+ // Generates an OpenGL compressed texture and returns a texture handle. May
+ // return 0 if the current context is lost.
+ virtual WebKit::WebGLId GenerateCompressedTexture(gfx::Size& size,
+ int data_size,
+ void* data) = 0;
+
+ // Deletes an OpenGL texture.
+ virtual void DeleteTexture(WebKit::WebGLId texture_id) = 0;
+
protected:
Compositor() {}
};
« no previous file with comments | « content/browser/renderer_host/image_transport_factory_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698