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 #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 Loading... |
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_ |
OLD | NEW |