summaryrefslogtreecommitdiffstats
path: root/android_webview/public
diff options
context:
space:
mode:
authorkaanb@chromium.org <kaanb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-09 22:18:57 +0000
committerkaanb@chromium.org <kaanb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-09 22:18:57 +0000
commitf022d73e4353d3554216e8731bf2eab01778d91a (patch)
tree6be843a6a5d32e674170e5222a4f16f014d9daa5 /android_webview/public
parentb5382e56e7748de30b5fbdfb0dab168d725a6cdd (diff)
downloadchromium_src-f022d73e4353d3554216e8731bf2eab01778d91a.zip
chromium_src-f022d73e4353d3554216e8731bf2eab01778d91a.tar.gz
chromium_src-f022d73e4353d3554216e8731bf2eab01778d91a.tar.bz2
Change Map() API to take in a mode for read/write/read-or-write, also pass gfx::Size by value as for small structs it's more efficient.
BUG=175012 Review URL: https://chromiumcodereview.appspot.com/13879002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193234 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/public')
-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;