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

Unified Diff: ui/gl/gpu_switching_manager.h

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_version_info.h ('k') | ui/gl/gpu_switching_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gpu_switching_manager.h
diff --git a/ui/gl/gpu_switching_manager.h b/ui/gl/gpu_switching_manager.h
index 7e82d62481852762f55e091d3783acc92fb2922e..a6a810f8bf1473ec31b1926db0ce7c4a60ab1b4f 100644
--- a/ui/gl/gpu_switching_manager.h
+++ b/ui/gl/gpu_switching_manager.h
@@ -13,10 +13,6 @@
#include "ui/gl/gpu_preference.h"
#include "ui/gl/gpu_switching_observer.h"
-#if defined(OS_MACOSX)
-#include <OpenGL/OpenGL.h>
-#endif // OS_MACOSX
-
namespace ui {
class GL_EXPORT GpuSwitchingManager {
@@ -60,8 +56,6 @@ class GL_EXPORT GpuSwitchingManager {
#if defined(OS_MACOSX)
void SwitchToDiscreteGpuMac();
-
- CGLPixelFormatObj discrete_pixel_format_;
#endif // OS_MACOSX
gfx::GpuPreference gpu_switching_option_;
@@ -72,6 +66,9 @@ class GL_EXPORT GpuSwitchingManager {
size_t gpu_count_;
+ struct PlatformSpecific;
+ scoped_ptr<PlatformSpecific> platform_specific_;
+
ObserverList<GpuSwitchingObserver> observer_list_;
DISALLOW_COPY_AND_ASSIGN(GpuSwitchingManager);
« no previous file with comments | « ui/gl/gl_version_info.h ('k') | ui/gl/gpu_switching_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698