summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/GLUtils.h
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2010-09-22 11:27:36 -0400
committerDerek Sollenberger <djsollen@google.com>2010-09-27 08:30:31 -0400
commit13ae18a5652329f6ed05083d98d679087d83c242 (patch)
tree8a87d4fced0538302719b0fb3e5a71fd1cfffa40 /WebCore/platform/graphics/android/GLUtils.h
parentc95d7f499ee3250e2d4a51f7e8f04bb6ebfc6add (diff)
downloadexternal_webkit-13ae18a5652329f6ed05083d98d679087d83c242.zip
external_webkit-13ae18a5652329f6ed05083d98d679087d83c242.tar.gz
external_webkit-13ae18a5652329f6ed05083d98d679087d83c242.tar.bz2
Double Buffered Texture Support for WebKit.
This CL adds support for the DoubleBufferedTexture class which can be used to pass textures between threads. Bug-Id: 3034088 Change-Id: Idf4a5d367c02eae0cedb08f2167b9af370173851
Diffstat (limited to 'WebCore/platform/graphics/android/GLUtils.h')
-rw-r--r--WebCore/platform/graphics/android/GLUtils.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/android/GLUtils.h b/WebCore/platform/graphics/android/GLUtils.h
index eb2cbdf..1886c04 100644
--- a/WebCore/platform/graphics/android/GLUtils.h
+++ b/WebCore/platform/graphics/android/GLUtils.h
@@ -50,14 +50,18 @@ public:
static bool checkGlErrorOn(void* p, const char* op);
static bool checkGlError(const char* op);
+ // GL & EGL extension checks
+ static bool isEGLImageSupported();
+ static bool isEGLFenceSyncSupported();
+
// Texture utilities
static EGLContext createBackgroundContext(EGLContext sharedContext);
static void deleteTexture(GLuint* texture);
static GLuint createSampleTexture();
- static GLuint createTextureWithBitmap(SkBitmap& bitmap, GLint filter = GL_LINEAR);
+ static void createTextureWithBitmap(GLuint texture, SkBitmap& bitmap, GLint filter = GL_LINEAR);
static void updateTextureWithBitmap(GLuint texture, SkBitmap& bitmap, GLint filter = GL_LINEAR);
static void createEGLImageFromTexture(GLuint texture, EGLImageKHR* image);
- static GLuint createTextureFromEGLImage(EGLImageKHR image, GLint filter = GL_LINEAR);
+ static void createTextureFromEGLImage(GLuint texture, EGLImageKHR image, GLint filter = GL_LINEAR);
};
} // namespace WebCore