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

Side by Side Diff: ui/accelerated_widget_mac/io_surface_context.mm

Issue 885443005: Update tracing includes in .mm files and generator for /ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/accelerated_widget_mac/accelerated_widget_mac.mm ('k') | ui/accelerated_widget_mac/io_surface_layer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698