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

Side by Side Diff: android_webview/browser/scoped_app_gl_state_restore.h

Issue 19787007: [Android WebView] More App GL state save/restore (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 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 23 matching lines...) Expand all
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 GLint vertex_array_buffer_binding_; 39 GLint vertex_array_buffer_binding_;
40 GLint index_array_buffer_binding_; 40 GLint index_array_buffer_binding_;
41 41
42 GLboolean depth_test_; 42 GLboolean depth_test_;
43 GLboolean cull_face_; 43 GLboolean cull_face_;
44 GLint cull_face_mode_;
44 GLboolean color_mask_[4]; 45 GLboolean color_mask_[4];
45 GLboolean blend_enabled_; 46 GLfloat color_clear_[4];
46 GLint blend_src_rgb_; 47 GLfloat depth_clear_;
47 GLint blend_src_alpha_; 48 GLint stencil_clear_value_;
48 GLint blend_dest_rgb_;
49 GLint blend_dest_alpha_;
50 GLint active_texture_;
51 GLint viewport_[4];
52 GLboolean scissor_test_;
53 GLint scissor_box_[4];
54 GLint current_program_; 49 GLint current_program_;
50 GLint depth_func_;
51 GLboolean depth_mask_;
52 GLfloat depth_rage_[2];
53 GLint front_face_;
54 GLint hint_generate_mipmap_;
55 GLfloat line_width_;
56 GLfloat polygon_offset_factor_;
57 GLfloat polygon_offset_units_;
58 GLfloat sample_coverage_value_;
59 GLboolean sample_coverage_invert_;
60 GLint stencil_front_func_;
61 GLint stencil_front_ref_;
62 GLint stencil_front_mask_;
63 GLint stencil_back_func_;
64 GLint stencil_back_ref_;
65 GLint stencil_back_mask_;
66 GLint stencil_front_writemask_;
67 GLint stencil_back_writemask_;
68 GLint stencil_front_fail_op_;
69 GLint stencil_front_z_fail_op_;
70 GLint stencil_front_z_pass_op_;
71 GLint stencil_back_fail_op_;
72 GLint stencil_back_z_fail_op_;
73 GLint stencil_back_z_pass_op_;
74
75 GLboolean enable_dither_;
76 GLboolean enable_polygon_offset_fill_;
77 GLboolean enable_sample_alpha_to_coverage_;
78 GLboolean enable_sample_coverage_;
79 GLboolean enable_stencil_test_;
55 80
56 DISALLOW_COPY_AND_ASSIGN(ScopedAppGLStateRestore); 81 DISALLOW_COPY_AND_ASSIGN(ScopedAppGLStateRestore);
57 }; 82 };
58 83
59 } // namespace android_webview 84 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698