OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/accelerated_widget_mac/io_surface_context.h" | 5 #include "ui/accelerated_widget_mac/io_surface_context.h" |
6 | 6 |
7 #include <OpenGL/gl.h> | 7 #include <OpenGL/gl.h> |
8 #include <OpenGL/OpenGL.h> | 8 #include <OpenGL/OpenGL.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/debug/trace_event.h" | |
13 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/trace_event/trace_event.h" |
14 #include "ui/gl/gl_switches.h" | 14 #include "ui/gl/gl_switches.h" |
15 #include "ui/gl/gpu_switching_manager.h" | 15 #include "ui/gl/gpu_switching_manager.h" |
16 | 16 |
17 namespace ui { | 17 namespace ui { |
18 | 18 |
19 // static | 19 // static |
20 scoped_refptr<IOSurfaceContext> | 20 scoped_refptr<IOSurfaceContext> |
21 IOSurfaceContext::Get(Type type) { | 21 IOSurfaceContext::Get(Type type) { |
22 TRACE_EVENT0("browser", "IOSurfaceContext::Get"); | 22 TRACE_EVENT0("browser", "IOSurfaceContext::Get"); |
23 | 23 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 IOSurfaceContext::TypeMap* | 109 IOSurfaceContext::TypeMap* |
110 IOSurfaceContext::type_map() { | 110 IOSurfaceContext::type_map() { |
111 return type_map_.Pointer(); | 111 return type_map_.Pointer(); |
112 } | 112 } |
113 | 113 |
114 // static | 114 // static |
115 base::LazyInstance<IOSurfaceContext::TypeMap> | 115 base::LazyInstance<IOSurfaceContext::TypeMap> |
116 IOSurfaceContext::type_map_; | 116 IOSurfaceContext::type_map_; |
117 | 117 |
118 } // namespace ui | 118 } // namespace ui |
OLD | NEW |