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

Side by Side Diff: ui/gfx/gl/gl_implementation_mac.cc

Issue 6722026: Refactor: Move app/gfx/gl ==> ui/gfx/gl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try removing a dep. Created 9 years, 8 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/gfx/gl/gl_implementation_linux.cc ('k') | ui/gfx/gl/gl_implementation_win.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "app/gfx/gl/gl_bindings.h"
6 #include "app/gfx/gl/gl_implementation.h"
7 #include "base/base_paths.h" 5 #include "base/base_paths.h"
8 #include "base/file_path.h" 6 #include "base/file_path.h"
9 #include "base/logging.h" 7 #include "base/logging.h"
10 #include "base/native_library.h" 8 #include "base/native_library.h"
11 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "ui/gfx/gl/gl_bindings.h"
11 #include "ui/gfx/gl/gl_implementation.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 namespace { 14 namespace {
15 const char kOpenGLFrameworkPath[] = 15 const char kOpenGLFrameworkPath[] =
16 "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL"; 16 "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL";
17 } // namespace anonymous 17 } // namespace anonymous
18 18
19 bool InitializeGLBindings(GLImplementation implementation) { 19 bool InitializeGLBindings(GLImplementation implementation) {
20 // Prevent reinitialization with a different implementation. Once the gpu 20 // Prevent reinitialization with a different implementation. Once the gpu
21 // unit tests have initialized with kGLImplementationMock, we don't want to 21 // unit tests have initialized with kGLImplementationMock, we don't want to
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 return true; 84 return true;
85 } 85 }
86 86
87 void InitializeDebugGLBindings() { 87 void InitializeDebugGLBindings() {
88 InitializeDebugGLBindingsGL(); 88 InitializeDebugGLBindingsGL();
89 InitializeDebugGLBindingsOSMESA(); 89 InitializeDebugGLBindingsOSMESA();
90 } 90 }
91 91
92 } // namespace gfx 92 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_implementation_linux.cc ('k') | ui/gfx/gl/gl_implementation_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698