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

Unified Diff: content/browser/renderer_host/compositor_impl_android.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 | « no previous file | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/compositor_impl_android.h
diff --git a/content/browser/renderer_host/compositor_impl_android.h b/content/browser/renderer_host/compositor_impl_android.h
index c1cac47b554ded087b8f62bb94125f07b6532be8..f12d62c2185b602ea7a7ee80a3ebd440e47da7f2 100644
--- a/content/browser/renderer_host/compositor_impl_android.h
+++ b/content/browser/renderer_host/compositor_impl_android.h
@@ -13,6 +13,7 @@
#include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeViewClient.h"
+
struct ANativeWindow;
namespace content {
@@ -36,6 +37,10 @@ class CompositorImpl : public Compositor,
virtual bool CompositeAndReadback(
void *pixels, const gfx::Rect& rect) OVERRIDE;
virtual void Composite() OVERRIDE;
+ virtual WebKit::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) OVERRIDE;
+ virtual WebKit::WebGLId GenerateCompressedTexture(
+ gfx::Size& size, int data_size, void* data) OVERRIDE;
+ virtual void DeleteTexture(WebKit::WebGLId texture_id) OVERRIDE;
// WebLayerTreeViewClient implementation.
virtual void updateAnimations(double frameBeginTime) OVERRIDE;
@@ -50,6 +55,10 @@ class CompositorImpl : public Compositor,
virtual void scheduleComposite() OVERRIDE;
private:
+ WebKit::WebGLId BuildBasicTexture();
+ WebKit::WGC3Denum GetGLFormatForBitmap(gfx::JavaBitmap& bitmap);
+ WebKit::WGC3Denum GetGLTypeForBitmap(gfx::JavaBitmap& bitmap);
+
scoped_ptr<WebKit::WebLayer> root_layer_;
scoped_ptr<WebKit::WebLayerTreeView> host_;
« no previous file with comments | « no previous file | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698