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

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

Issue 516643002: Fix assorted issues with remote CoreAnimation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean_up_accel_layers
Patch Set: Incorporate review feedback 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
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"
10 11
11 namespace gpu { 12 namespace gpu {
12 namespace gles2 { 13 namespace gles2 {
13 class GLES2Decoder; 14 class GLES2Decoder;
14 } 15 }
15 } 16 }
16 namespace gfx { 17 namespace gfx {
17 18
18 class GLContext; 19 class GLContext;
19 class GLSurface; 20 class GLSurface;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // The real context we're running on. 111 // The real context we're running on.
111 GLContext* real_context_; 112 GLContext* real_context_;
112 113
113 // The current virtual context. 114 // The current virtual context.
114 GLContext* current_context_; 115 GLContext* current_context_;
115 116
116 // The supported extensions being advertised for this virtual context. 117 // The supported extensions being advertised for this virtual context.
117 std::string extensions_; 118 std::string extensions_;
118 }; 119 };
119 120
121 class GL_EXPORT ScopedSetGLToRealGLApi {
122 public:
123 ScopedSetGLToRealGLApi();
124 ~ScopedSetGLToRealGLApi();
125
126 private:
127 GLApi* old_gl_api_;
128 };
129
120 } // namespace gfx 130 } // namespace gfx
121 131
122 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ 132 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698