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

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

Issue 414163002: aw: Add and use DrawGL kModeSync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make AwDrawGLInfo future proof 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
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 6409598b2a9e53e9cd56c9986e27a567a8f4604d..4a43523593ac151fd2c67e580dbdfd37be52cb14 100644
--- a/android_webview/public/browser/draw_gl.h
+++ b/android_webview/public/browser/draw_gl.h
@@ -9,11 +9,15 @@
extern "C" {
#endif
+static const int kAwDrawGLInfoVersion = 1;
+
// Holds the information required to trigger an OpenGL drawing operation.
struct AwDrawGLInfo {
+ int version; // The AwDrawGLInfo this struct was built with.
hush (inactive) 2014/07/25 18:08:07 where is the version set? I think you need to do t
boliu 2014/07/25 18:11:02 Yes
+
// Input: tells the draw function what action to perform.
enum Mode {
- kModeDraw,
+ kModeDraw = 0,
kModeProcess,
kModeProcessNoContext,
kModeSync,
« android_webview/native/aw_contents.cc ('K') | « android_webview/native/aw_contents.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698