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

Side by Side Diff: ui/gl/gl_gl_api_implementation.h

Issue 517733002: Revert of Fix assorted issues with remote CoreAnimation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean_up_accel_layers
Patch Set: Created 6 years, 3 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
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 UI_GL_GL_GL_API_IMPLEMENTATION_H_ 5 #ifndef UI_GL_GL_GL_API_IMPLEMENTATION_H_
6 #define UI_GL_GL_GL_API_IMPLEMENTATION_H_ 6 #define UI_GL_GL_GL_API_IMPLEMENTATION_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/gl/gl_bindings.h" 9 #include "ui/gl/gl_bindings.h"
10 #include "ui/gl/gl_export.h"
11 10
12 namespace gpu { 11 namespace gpu {
13 namespace gles2 { 12 namespace gles2 {
14 class GLES2Decoder; 13 class GLES2Decoder;
15 } 14 }
16 } 15 }
17 namespace gfx { 16 namespace gfx {
18 17
19 class GLContext; 18 class GLContext;
20 class GLSurface; 19 class GLSurface;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // The real context we're running on. 110 // The real context we're running on.
112 GLContext* real_context_; 111 GLContext* real_context_;
113 112
114 // The current virtual context. 113 // The current virtual context.
115 GLContext* current_context_; 114 GLContext* current_context_;
116 115
117 // The supported extensions being advertised for this virtual context. 116 // The supported extensions being advertised for this virtual context.
118 std::string extensions_; 117 std::string extensions_;
119 }; 118 };
120 119
121 class GL_EXPORT ScopedSetGLToRealGLApi {
122 public:
123 ScopedSetGLToRealGLApi();
124 ~ScopedSetGLToRealGLApi();
125
126 private:
127 GLApi* old_gl_api_;
128 };
129
130 } // namespace gfx 120 } // namespace gfx
131 121
132 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ 122 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698