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

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

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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/gl/scoped_cgl.cc ('k') | ui/gl/scoped_make_current.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_SCOPED_MAKE_CURRENT_H_ 5 #ifndef UI_GL_SCOPED_MAKE_CURRENT_H_
6 #define UI_GL_SCOPED_MAKE_CURRENT_H_ 6 #define UI_GL_SCOPED_MAKE_CURRENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "ui/gl/gl_export.h" 10 #include "ui/gl/gl_export.h"
11 11
12 namespace gfx { 12 namespace gl {
13 class GLContext; 13 class GLContext;
14 class GLSurface; 14 class GLSurface;
15 } 15 }
16 16
17 namespace ui { 17 namespace ui {
18 18
19 class GL_EXPORT ScopedMakeCurrent { 19 class GL_EXPORT ScopedMakeCurrent {
20 public: 20 public:
21 ScopedMakeCurrent(gfx::GLContext* context, gfx::GLSurface* surface); 21 ScopedMakeCurrent(gl::GLContext* context, gl::GLSurface* surface);
22 ~ScopedMakeCurrent(); 22 ~ScopedMakeCurrent();
23 23
24 bool Succeeded() const; 24 bool Succeeded() const;
25 25
26 private: 26 private:
27 scoped_refptr<gfx::GLContext> previous_context_; 27 scoped_refptr<gl::GLContext> previous_context_;
28 scoped_refptr<gfx::GLSurface> previous_surface_; 28 scoped_refptr<gl::GLSurface> previous_surface_;
29 scoped_refptr<gfx::GLContext> context_; 29 scoped_refptr<gl::GLContext> context_;
30 scoped_refptr<gfx::GLSurface> surface_; 30 scoped_refptr<gl::GLSurface> surface_;
31 bool succeeded_; 31 bool succeeded_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(ScopedMakeCurrent); 33 DISALLOW_COPY_AND_ASSIGN(ScopedMakeCurrent);
34 }; 34 };
35 35
36 } // namespace ui 36 } // namespace ui
37 37
38 #endif // UI_GL_SCOPED_MAKE_CURRENT_H_ 38 #endif // UI_GL_SCOPED_MAKE_CURRENT_H_
OLDNEW
« no previous file with comments | « ui/gl/scoped_cgl.cc ('k') | ui/gl/scoped_make_current.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698