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

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

Issue 10392068: ui: Move gl/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac_rel Created 8 years, 7 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
« no previous file with comments | « ui/gl/gl_context_android.cc ('k') | ui/gl/gl_context_cgl.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 #include "ui/gfx/gl/gl_context.h" 5 #ifndef UI_GL_GL_CONTEXT_CGL_H_
6 #define UI_GL_GL_CONTEXT_CGL_H_
7 #pragma once
8
9 #include "ui/gl/gl_context.h"
6 10
7 namespace gfx { 11 namespace gfx {
8 12
9 class GLSurface; 13 class GLSurface;
10 14
11 // Encapsulates a CGL OpenGL context. 15 // Encapsulates a CGL OpenGL context.
12 class GLContextCGL : public GLContext { 16 class GLContextCGL : public GLContext {
13 public: 17 public:
14 explicit GLContextCGL(GLShareGroup* share_group); 18 explicit GLContextCGL(GLShareGroup* share_group);
15 19
(...skipping 20 matching lines...) Expand all
36 // for stability reasons. 40 // for stability reasons.
37 static void ForceUseOfDiscreteGPU(); 41 static void ForceUseOfDiscreteGPU();
38 42
39 void* context_; 43 void* context_;
40 GpuPreference gpu_preference_; 44 GpuPreference gpu_preference_;
41 45
42 DISALLOW_COPY_AND_ASSIGN(GLContextCGL); 46 DISALLOW_COPY_AND_ASSIGN(GLContextCGL);
43 }; 47 };
44 48
45 } // namespace gfx 49 } // namespace gfx
50
51 #endif // UI_GL_GL_CONTEXT_CGL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_context_android.cc ('k') | ui/gl/gl_context_cgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698