From 13ae18a5652329f6ed05083d98d679087d83c242 Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Wed, 22 Sep 2010 11:27:36 -0400 Subject: 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 --- WebCore/platform/graphics/android/GLUtils.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'WebCore/platform/graphics/android/GLUtils.h') 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 -- cgit v1.1