| 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() {}
|
| };
|
|
|