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

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

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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
« no previous file with comments | « ui/PRESUBMIT.py ('k') | ui/accessibility/ax_generated_tree_unittest.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) 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 #ifndef UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_ 5 #ifndef UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_
6 #define UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_ 6 #define UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_
7 7
8 #include <OpenGL/OpenGL.h> 8 #include <OpenGL/OpenGL.h>
9
9 #include <map> 10 #include <map>
11 #include <memory>
10 12
11 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
12 #include "base/mac/scoped_nsobject.h" 14 #include "base/mac/scoped_nsobject.h"
13 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h" 16 #include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h"
16 #include "ui/gl/gpu_switching_observer.h" 17 #include "ui/gl/gpu_switching_observer.h"
17 #include "ui/gl/scoped_cgl.h" 18 #include "ui/gl/scoped_cgl.h"
18 19
19 namespace ui { 20 namespace ui {
20 21
21 class IOSurfaceContext 22 class IOSurfaceContext
22 : public base::RefCounted<IOSurfaceContext>, 23 : public base::RefCounted<IOSurfaceContext>,
23 public ui::GpuSwitchingObserver { 24 public ui::GpuSwitchingObserver {
24 public: 25 public:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // The global map from window number and window ordering to 65 // The global map from window number and window ordering to
65 // context data. 66 // context data.
66 typedef std::map<Type, IOSurfaceContext*> TypeMap; 67 typedef std::map<Type, IOSurfaceContext*> TypeMap;
67 static base::LazyInstance<TypeMap> type_map_; 68 static base::LazyInstance<TypeMap> type_map_;
68 static TypeMap* type_map(); 69 static TypeMap* type_map();
69 }; 70 };
70 71
71 } // namespace ui 72 } // namespace ui
72 73
73 #endif // UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_ 74 #endif // UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_
OLDNEW
« no previous file with comments | « ui/PRESUBMIT.py ('k') | ui/accessibility/ax_generated_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698