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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_GL_H_ 5 #ifndef ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_GL_H_
6 #define ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_GL_H_ 6 #define ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_GL_H_
7 7
8 #ifdef __cplusplus 8 #ifdef __cplusplus
9 extern "C" { 9 extern "C" {
10 #endif 10 #endif
11 11
12 static const int kAwDrawGLInfoVersion = 1;
13
12 // Holds the information required to trigger an OpenGL drawing operation. 14 // Holds the information required to trigger an OpenGL drawing operation.
13 struct AwDrawGLInfo { 15 struct AwDrawGLInfo {
16 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
17
14 // Input: tells the draw function what action to perform. 18 // Input: tells the draw function what action to perform.
15 enum Mode { 19 enum Mode {
16 kModeDraw, 20 kModeDraw = 0,
17 kModeProcess, 21 kModeProcess,
18 kModeProcessNoContext, 22 kModeProcessNoContext,
19 kModeSync, 23 kModeSync,
20 } mode; 24 } mode;
21 25
22 // Input: current clip rect in surface coordinates. Reflects the current state 26 // Input: current clip rect in surface coordinates. Reflects the current state
23 // of the OpenGL scissor rect. Both the OpenGL scissor rect and viewport are 27 // of the OpenGL scissor rect. Both the OpenGL scissor rect and viewport are
24 // set by the caller of the draw function and updated during View animations. 28 // set by the caller of the draw function and updated during View animations.
25 int clip_left; 29 int clip_left;
26 int clip_top; 30 int clip_top;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 AwUnmapFunction* unmap; 94 AwUnmapFunction* unmap;
91 AwGetNativeBufferFunction* get_native_buffer; 95 AwGetNativeBufferFunction* get_native_buffer;
92 AwGetStrideFunction* get_stride; 96 AwGetStrideFunction* get_stride;
93 }; 97 };
94 98
95 #ifdef __cplusplus 99 #ifdef __cplusplus
96 } // extern "C" 100 } // extern "C"
97 #endif 101 #endif
98 102
99 #endif // ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_GL_H_ 103 #endif // ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_GL_H_
OLDNEW
« 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