summaryrefslogtreecommitdiffstats
path: root/android_webview/public/browser/draw_gl.h
diff options
context:
space:
mode:
Diffstat (limited to 'android_webview/public/browser/draw_gl.h')
-rw-r--r--android_webview/public/browser/draw_gl.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/android_webview/public/browser/draw_gl.h b/android_webview/public/browser/draw_gl.h
index bfbf8a4..4c43669 100644
--- a/android_webview/public/browser/draw_gl.h
+++ b/android_webview/public/browser/draw_gl.h
@@ -82,8 +82,9 @@ typedef void (AwDrawGLFunction)(int view_context,
typedef int AwCreateGraphicBufferFunction(int w, int h);
// Called to release a GraphicBuffer
typedef void AwReleaseGraphicBufferFunction(int buffer_id);
-// Called to lock a GraphicBuffer for writing
-typedef int AwLockForWriteFunction(int buffer_id, void** vaddr);
+// Called to lock a GraphicBuffer in |mode|, which is
+// defined in AccessMode enum in ui/gl/gpu_memory_buffer.h
+typedef int AwLockFunction(int buffer_id, int mode, void** vaddr);
// Called to unlock a GraphicBuffer
typedef int AwUnlockFunction(int buffer_id);
// Called to get a native buffer pointer
@@ -95,7 +96,7 @@ typedef unsigned int AwGetStrideFunction(int buffer_id);
struct AwDrawGLFunctionTable {
AwCreateGraphicBufferFunction* create_graphic_buffer;
AwReleaseGraphicBufferFunction* release_graphic_buffer;
- AwLockForWriteFunction* lock_for_write;
+ AwLockFunction* lock;
AwUnlockFunction* unlock;
AwGetNativeBufferFunction* get_native_buffer;
AwGetStrideFunction* get_stride;