| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |