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

Side by Side Diff: ui/gl/gl_implementation_linux.cc

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_implementation_android.cc ('k') | ui/gl/gl_implementation_mac.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 <vector> 5 #include <vector>
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/native_library.h" 11 #include "base/native_library.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/threading/thread_restrictions.h" 13 #include "base/threading/thread_restrictions.h"
14 #include "ui/gfx/gl/gl_bindings.h" 14 #include "ui/gl/gl_bindings.h"
15 #include "ui/gfx/gl/gl_implementation.h" 15 #include "ui/gl/gl_implementation.h"
16 #include "ui/gfx/gl/gl_switches.h" 16 #include "ui/gl/gl_switches.h"
17 17
18 namespace gfx { 18 namespace gfx {
19 namespace { 19 namespace {
20 20
21 // TODO(piman): it should be Desktop GL marshalling from double to float. Today 21 // TODO(piman): it should be Desktop GL marshalling from double to float. Today
22 // on native GLES, we do float->double->float. 22 // on native GLES, we do float->double->float.
23 void GL_BINDING_CALL MarshalClearDepthToClearDepthf(GLclampd depth) { 23 void GL_BINDING_CALL MarshalClearDepthToClearDepthf(GLclampd depth) {
24 glClearDepthf(static_cast<GLclampf>(depth)); 24 glClearDepthf(static_cast<GLclampf>(depth));
25 } 25 }
26 26
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 ClearGLBindingsEGL(); 219 ClearGLBindingsEGL();
220 ClearGLBindingsGL(); 220 ClearGLBindingsGL();
221 ClearGLBindingsGLX(); 221 ClearGLBindingsGLX();
222 ClearGLBindingsOSMESA(); 222 ClearGLBindingsOSMESA();
223 SetGLImplementation(kGLImplementationNone); 223 SetGLImplementation(kGLImplementationNone);
224 224
225 UnloadGLNativeLibraries(); 225 UnloadGLNativeLibraries();
226 } 226 }
227 227
228 } // namespace gfx 228 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_implementation_android.cc ('k') | ui/gl/gl_implementation_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698