Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "ui/gl/gl_bindings.h" | 6 #include "ui/gl/gl_bindings.h" |
| 7 | 7 |
| 8 namespace gfx { | 8 namespace gfx { |
| 9 class GLContext; | 9 class GLContext; |
| 10 } | 10 } |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 | 29 |
| 30 struct { | 30 struct { |
| 31 GLint enabled; | 31 GLint enabled; |
| 32 GLint size; | 32 GLint size; |
| 33 GLint type; | 33 GLint type; |
| 34 GLint normalized; | 34 GLint normalized; |
| 35 GLint stride; | 35 GLint stride; |
| 36 GLvoid* pointer; | 36 GLvoid* pointer; |
| 37 } vertex_attrib_[3]; | 37 } vertex_attrib_[3]; |
| 38 | 38 |
| 39 const CallMode mode_; | |
|
joth
2013/07/23 22:02:54
nit: make it the first member?
| |
| 40 | |
| 39 GLint vertex_array_buffer_binding_; | 41 GLint vertex_array_buffer_binding_; |
| 40 GLint index_array_buffer_binding_; | 42 GLint index_array_buffer_binding_; |
| 41 | 43 |
| 42 GLboolean depth_test_; | 44 GLboolean depth_test_; |
| 43 GLboolean cull_face_; | 45 GLboolean cull_face_; |
| 46 GLint cull_face_mode_; | |
| 44 GLboolean color_mask_[4]; | 47 GLboolean color_mask_[4]; |
| 48 GLfloat color_clear_[4]; | |
| 49 GLfloat depth_clear_; | |
| 50 GLint current_program_; | |
| 51 GLint depth_func_; | |
| 52 GLboolean depth_mask_; | |
| 53 GLfloat depth_rage_[2]; | |
| 54 GLint front_face_; | |
| 55 GLint hint_generate_mipmap_; | |
| 56 GLfloat line_width_; | |
| 57 GLfloat polygon_offset_factor_; | |
| 58 GLfloat polygon_offset_units_; | |
| 59 GLfloat sample_coverage_value_; | |
| 60 GLboolean sample_coverage_invert_; | |
| 61 | |
| 62 GLboolean enable_dither_; | |
| 63 GLboolean enable_polygon_offset_fill_; | |
| 64 GLboolean enable_sample_alpha_to_coverage_; | |
| 65 GLboolean enable_sample_coverage_; | |
| 66 | |
| 67 // Not saved/restored in MODE_DRAW. | |
| 45 GLboolean blend_enabled_; | 68 GLboolean blend_enabled_; |
| 46 GLint blend_src_rgb_; | 69 GLint blend_src_rgb_; |
| 47 GLint blend_src_alpha_; | 70 GLint blend_src_alpha_; |
| 48 GLint blend_dest_rgb_; | 71 GLint blend_dest_rgb_; |
| 49 GLint blend_dest_alpha_; | 72 GLint blend_dest_alpha_; |
| 50 GLint active_texture_; | 73 GLint active_texture_; |
| 51 GLint viewport_[4]; | 74 GLint viewport_[4]; |
| 52 GLboolean scissor_test_; | 75 GLboolean scissor_test_; |
| 53 GLint scissor_box_[4]; | 76 GLint scissor_box_[4]; |
| 54 GLint current_program_; | |
| 55 | 77 |
| 56 DISALLOW_COPY_AND_ASSIGN(ScopedAppGLStateRestore); | 78 DISALLOW_COPY_AND_ASSIGN(ScopedAppGLStateRestore); |
| 57 }; | 79 }; |
| 58 | 80 |
| 59 } // namespace android_webview | 81 } // namespace android_webview |
| OLD | NEW |