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

Side by Side Diff: ui/gl/gpu_switching_manager.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/gl/glx_api_unittest.cc ('k') | ui/gl/gpu_timing.h » ('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) 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 #ifndef UI_GL_GPU_SWITCHING_MANAGER_H_ 5 #ifndef UI_GL_GPU_SWITCHING_MANAGER_H_
6 #define UI_GL_GPU_SWITCHING_MANAGER_H_ 6 #define UI_GL_GPU_SWITCHING_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/singleton.h" 14 #include "base/memory/singleton.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "ui/gl/gl_export.h" 17 #include "ui/gl/gl_export.h"
18 #include "ui/gl/gpu_preference.h" 18 #include "ui/gl/gpu_preference.h"
19 #include "ui/gl/gpu_switching_observer.h" 19 #include "ui/gl/gpu_switching_observer.h"
20 20
21 namespace ui { 21 namespace ui {
22 22
23 class GL_EXPORT GpuSwitchingManager { 23 class GL_EXPORT GpuSwitchingManager {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 gfx::GpuPreference gpu_switching_option_; 68 gfx::GpuPreference gpu_switching_option_;
69 bool gpu_switching_option_set_; 69 bool gpu_switching_option_set_;
70 70
71 std::vector<uint32_t> vendor_ids_; 71 std::vector<uint32_t> vendor_ids_;
72 72
73 bool supports_dual_gpus_; 73 bool supports_dual_gpus_;
74 bool supports_dual_gpus_set_; 74 bool supports_dual_gpus_set_;
75 75
76 struct PlatformSpecific; 76 struct PlatformSpecific;
77 scoped_ptr<PlatformSpecific> platform_specific_; 77 std::unique_ptr<PlatformSpecific> platform_specific_;
78 78
79 base::ObserverList<GpuSwitchingObserver> observer_list_; 79 base::ObserverList<GpuSwitchingObserver> observer_list_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(GpuSwitchingManager); 81 DISALLOW_COPY_AND_ASSIGN(GpuSwitchingManager);
82 }; 82 };
83 83
84 } // namespace ui 84 } // namespace ui
85 85
86 #endif // UI_GL_GPU_SWITCHING_MANAGER_H_ 86 #endif // UI_GL_GPU_SWITCHING_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/gl/glx_api_unittest.cc ('k') | ui/gl/gpu_timing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698