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 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/message_loop/message_loop.h" |
15 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
16 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
17 #include "base/trace_event/trace_event.h" | 18 #include "base/trace_event/trace_event.h" |
18 #include "ui/gl/gl_bindings.h" | 19 #include "ui/gl/gl_bindings.h" |
19 #include "ui/gl/gl_implementation.h" | 20 #include "ui/gl/gl_implementation.h" |
20 #include "ui/gl/gl_surface.h" | 21 #include "ui/gl/gl_surface.h" |
21 #include "ui/gl/gpu_switching_manager.h" | 22 #include "ui/gl/gpu_switching_manager.h" |
22 #include "ui/gl/scoped_cgl.h" | 23 #include "ui/gl/scoped_cgl.h" |
23 #include "ui/gl/yuv_to_rgb_converter.h" | 24 #include "ui/gl/yuv_to_rgb_converter.h" |
24 | 25 |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 281 |
281 GLContextCGL::~GLContextCGL() { | 282 GLContextCGL::~GLContextCGL() { |
282 Destroy(); | 283 Destroy(); |
283 } | 284 } |
284 | 285 |
285 GpuPreference GLContextCGL::GetGpuPreference() { | 286 GpuPreference GLContextCGL::GetGpuPreference() { |
286 return gpu_preference_; | 287 return gpu_preference_; |
287 } | 288 } |
288 | 289 |
289 } // namespace gl | 290 } // namespace gl |
OLD | NEW |