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

Unified Diff: views/widget/native_widget_wayland.cc

Issue 8233027: Support dynamic switching between integrated and discrete GPUs on Mac OS X. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: views/widget/native_widget_wayland.cc
===================================================================
--- views/widget/native_widget_wayland.cc (revision 105357)
+++ views/widget/native_widget_wayland.cc (working copy)
@@ -94,7 +94,10 @@
delegate_->AsWidget()->GetRootView()->SetPaintToLayer(true);
} else {
surface_ = gfx::GLSurface::CreateViewGLSurface(false, egl_window_);
- context_ = gfx::GLContext::CreateGLContext(NULL, surface_.get());
+ context_ = gfx::GLContext::CreateGLContext(
+ NULL,
+ surface_.get(),
+ gfx::PreferIntegratedGpu);
if (!context_->MakeCurrent(surface_.get()))
DLOG(ERROR) << "Failed to make surface current";
« no previous file with comments | « ui/gfx/surface/accelerated_surface_mac.cc ('k') | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698