Index: ui/accelerated_widget_mac/io_surface_context.mm |
diff --git a/ui/accelerated_widget_mac/io_surface_context.mm b/ui/accelerated_widget_mac/io_surface_context.mm |
index 59e79fd847da94f4c6500f9a49b14281383011fe..7b0dcd1e314044bcb55bdaa52a8fd6dab2a5c4ca 100644 |
--- a/ui/accelerated_widget_mac/io_surface_context.mm |
+++ b/ui/accelerated_widget_mac/io_surface_context.mm |
@@ -35,10 +35,8 @@ IOSurfaceContext::Get(Type type) { |
std::vector<CGLPixelFormatAttribute> attribs; |
attribs.push_back(kCGLPFADepthSize); |
attribs.push_back(static_cast<CGLPixelFormatAttribute>(0)); |
- if (ui::GpuSwitchingManager::GetInstance()->SupportsDualGpus()) { |
+ if (ui::GpuSwitchingManager::GetInstance()->SupportsDualGpus()) |
attribs.push_back(kCGLPFAAllowOfflineRenderers); |
- attribs.push_back(static_cast<CGLPixelFormatAttribute>(1)); |
- } |
attribs.push_back(static_cast<CGLPixelFormatAttribute>(0)); |
GLint number_virtual_screens = 0; |
base::ScopedTypeRef<CGLPixelFormatObj> pixel_format; |