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

Side by Side Diff: android_webview/public/browser/draw_gl.h

Issue 251843006: aw: Add new DrawGL modes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move share state Created 6 years, 7 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
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Holds the information required to trigger an OpenGL drawing operation. 12 // Holds the information required to trigger an OpenGL drawing operation.
13 struct AwDrawGLInfo { 13 struct AwDrawGLInfo {
14 // Input: tells the draw function what action to perform. 14 // Input: tells the draw function what action to perform.
15 enum Mode { 15 enum Mode {
16 kModeDraw, 16 kModeDraw,
17 kModeProcess, 17 kModeProcess,
18 kModeProcessNoContext,
19 kModeSync,
18 } mode; 20 } mode;
19 21
20 // Input: current clip rect in surface coordinates. Reflects the current state 22 // Input: current clip rect in surface coordinates. Reflects the current state
21 // of the OpenGL scissor rect. Both the OpenGL scissor rect and viewport are 23 // of the OpenGL scissor rect. Both the OpenGL scissor rect and viewport are
22 // set by the caller of the draw function and updated during View animations. 24 // set by the caller of the draw function and updated during View animations.
23 int clip_left; 25 int clip_left;
24 int clip_top; 26 int clip_top;
25 int clip_right; 27 int clip_right;
26 int clip_bottom; 28 int clip_bottom;
27 29
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 AwUnmapFunction* unmap; 90 AwUnmapFunction* unmap;
89 AwGetNativeBufferFunction* get_native_buffer; 91 AwGetNativeBufferFunction* get_native_buffer;
90 AwGetStrideFunction* get_stride; 92 AwGetStrideFunction* get_stride;
91 }; 93 };
92 94
93 #ifdef __cplusplus 95 #ifdef __cplusplus
94 } // extern "C" 96 } // extern "C"
95 #endif 97 #endif
96 98
97 #endif // ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_GL_H_ 99 #endif // ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_GL_H_
OLDNEW
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698