Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(767)

Unified Diff: android_webview/public/browser/draw_gl.h

Issue 433603005: aw: Add versions to public function tables (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | android_webview/public/browser/draw_sw.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/public/browser/draw_gl.h
diff --git a/android_webview/public/browser/draw_gl.h b/android_webview/public/browser/draw_gl.h
index 4a43523593ac151fd2c67e580dbdfd37be52cb14..d62375fc5bdeac0fd632bd00ff4c86e75667ee15 100644
--- a/android_webview/public/browser/draw_gl.h
+++ b/android_webview/public/browser/draw_gl.h
@@ -86,8 +86,11 @@ typedef void* AwGetNativeBufferFunction(long buffer_id);
// Called to get the stride of the buffer
typedef unsigned int AwGetStrideFunction(long buffer_id);
+static const int kAwDrawGLFunctionTableVersion = 1;
hush (inactive) 2014/07/31 21:03:50 what is the circumstance that AwDrawGLFunctionTabl
hush (inactive) 2014/07/31 21:08:40 I guess every time you add something to the struct
boliu 2014/07/31 21:09:38 They can change independently. For example if we s
boliu 2014/07/31 21:10:46 Right that's the idea. And you can't access new me
+
// Set of functions used in rendering in hardware mode
struct AwDrawGLFunctionTable {
+ int version;
AwCreateGraphicBufferFunction* create_graphic_buffer;
AwReleaseGraphicBufferFunction* release_graphic_buffer;
AwMapFunction* map;
« no previous file with comments | « no previous file | android_webview/public/browser/draw_sw.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698