diff options
author | Derek Sollenberger <djsollen@google.com> | 2010-09-22 11:27:36 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2010-09-27 08:30:31 -0400 |
commit | 13ae18a5652329f6ed05083d98d679087d83c242 (patch) | |
tree | 8a87d4fced0538302719b0fb3e5a71fd1cfffa40 /WebCore/platform/graphics/android/GLUtils.h | |
parent | c95d7f499ee3250e2d4a51f7e8f04bb6ebfc6add (diff) | |
download | external_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.h | 8 |
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 |