| 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 <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
| 14 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 15 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 16 #include "ui/gl/gl_export.h" | 17 #include "ui/gl/gl_export.h" |
| 17 #include "ui/gl/gpu_preference.h" | 18 #include "ui/gl/gpu_preference.h" |
| 18 #include "ui/gl/gpu_switching_observer.h" | 19 #include "ui/gl/gpu_switching_observer.h" |
| 19 | 20 |
| 20 namespace ui { | 21 namespace ui { |
| 21 | 22 |
| 22 class GL_EXPORT GpuSwitchingManager { | 23 class GL_EXPORT GpuSwitchingManager { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 scoped_ptr<PlatformSpecific> platform_specific_; | 77 scoped_ptr<PlatformSpecific> platform_specific_; |
| 77 | 78 |
| 78 base::ObserverList<GpuSwitchingObserver> observer_list_; | 79 base::ObserverList<GpuSwitchingObserver> observer_list_; |
| 79 | 80 |
| 80 DISALLOW_COPY_AND_ASSIGN(GpuSwitchingManager); | 81 DISALLOW_COPY_AND_ASSIGN(GpuSwitchingManager); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace ui | 84 } // namespace ui |
| 84 | 85 |
| 85 #endif // UI_GL_GPU_SWITCHING_MANAGER_H_ | 86 #endif // UI_GL_GPU_SWITCHING_MANAGER_H_ |
| OLD | NEW |