Index: ui/gl/gl_context_cgl.h |
=================================================================== |
--- ui/gl/gl_context_cgl.h (revision 158210) |
+++ ui/gl/gl_context_cgl.h (working copy) |
@@ -38,8 +38,15 @@ |
virtual ~GLContextCGL(); |
private: |
+ // Expose ForceUseOfDiscreteGPU only to GLContext implementation. |
+ friend class GLContext; |
+ |
GpuPreference GetGpuPreference(); |
+ // Helper for dual-GPU support on systems where this is necessary |
+ // for stability reasons. |
+ static void ForceUseOfDiscreteGPU(); |
+ |
void* context_; |
GpuPreference gpu_preference_; |