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

Side by Side Diff: ui/gl/gpu_switching_manager.h

Issue 1061733002: Remove windows/mac/ios specific code from //ui (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix default try set Created 5 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/gl_wgl_api_implementation.cc ('k') | ui/gl/gpu_switching_manager.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) 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 <vector> 8 #include <vector>
9 9
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // in the browser process only so that any workarounds or blacklisting can 47 // in the browser process only so that any workarounds or blacklisting can
48 // be applied there. 48 // be applied there.
49 void NotifyGpuSwitched(); 49 void NotifyGpuSwitched();
50 50
51 private: 51 private:
52 friend struct DefaultSingletonTraits<GpuSwitchingManager>; 52 friend struct DefaultSingletonTraits<GpuSwitchingManager>;
53 53
54 GpuSwitchingManager(); 54 GpuSwitchingManager();
55 virtual ~GpuSwitchingManager(); 55 virtual ~GpuSwitchingManager();
56 56
57 #if defined(OS_MACOSX)
58 void SwitchToDiscreteGpuMac();
59 #endif // OS_MACOSX
60
61 gfx::GpuPreference gpu_switching_option_; 57 gfx::GpuPreference gpu_switching_option_;
62 bool gpu_switching_option_set_; 58 bool gpu_switching_option_set_;
63 59
64 bool supports_dual_gpus_; 60 bool supports_dual_gpus_;
65 bool supports_dual_gpus_set_; 61 bool supports_dual_gpus_set_;
66 62
67 size_t gpu_count_; 63 size_t gpu_count_;
68 64
69 struct PlatformSpecific; 65 struct PlatformSpecific;
70 scoped_ptr<PlatformSpecific> platform_specific_;
71 66
72 ObserverList<GpuSwitchingObserver> observer_list_; 67 ObserverList<GpuSwitchingObserver> observer_list_;
73 68
74 DISALLOW_COPY_AND_ASSIGN(GpuSwitchingManager); 69 DISALLOW_COPY_AND_ASSIGN(GpuSwitchingManager);
75 }; 70 };
76 71
77 } // namespace ui 72 } // namespace ui
78 73
79 #endif // UI_GL_GPU_SWITCHING_MANAGER_H_ 74 #endif // UI_GL_GPU_SWITCHING_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_wgl_api_implementation.cc ('k') | ui/gl/gpu_switching_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698