| OLD | NEW |
| 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/gl/gl_context_cgl.h" | 5 #include "ui/gl/gl_context_cgl.h" |
| 6 | 6 |
| 7 #include <OpenGL/CGLRenderers.h> | 7 #include <OpenGL/CGLRenderers.h> |
| 8 #include <OpenGL/CGLTypes.h> | 8 #include <OpenGL/CGLTypes.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "ui/gl/gl_bindings.h" | 14 #include "ui/gl/gl_bindings.h" |
| 15 #include "ui/gl/gl_implementation.h" | 15 #include "ui/gl/gl_implementation.h" |
| 16 #include "ui/gl/gl_surface_cgl.h" | 16 #include "ui/gl/gl_surface.h" |
| 17 #include "ui/gl/gpu_switching_manager.h" | 17 #include "ui/gl/gpu_switching_manager.h" |
| 18 | 18 |
| 19 namespace gfx { | 19 namespace gfx { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 bool g_support_renderer_switching; | 23 bool g_support_renderer_switching; |
| 24 | 24 |
| 25 struct CGLRendererInfoObjDeleter { | 25 struct CGLRendererInfoObjDeleter { |
| 26 void operator()(CGLRendererInfoObj* x) { | 26 void operator()(CGLRendererInfoObj* x) { |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 296 |
| 297 GLContextCGL::~GLContextCGL() { | 297 GLContextCGL::~GLContextCGL() { |
| 298 Destroy(); | 298 Destroy(); |
| 299 } | 299 } |
| 300 | 300 |
| 301 GpuPreference GLContextCGL::GetGpuPreference() { | 301 GpuPreference GLContextCGL::GetGpuPreference() { |
| 302 return gpu_preference_; | 302 return gpu_preference_; |
| 303 } | 303 } |
| 304 | 304 |
| 305 } // namespace gfx | 305 } // namespace gfx |
| OLD | NEW |