summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/GLUtils.h
diff options
context:
space:
mode:
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