Index: components/mus/gles2/command_buffer_driver.cc |
diff --git a/components/mus/gles2/command_buffer_driver.cc b/components/mus/gles2/command_buffer_driver.cc |
index b3821b9f4dec1acc7f5489955097dfc64cdf761a..1f3c882c891cd1010f56ef0283e2f4b4f10358de 100644 |
--- a/components/mus/gles2/command_buffer_driver.cc |
+++ b/components/mus/gles2/command_buffer_driver.cc |
@@ -117,8 +117,8 @@ bool CommandBufferDriver::Initialize( |
return false; |
// TODO(piman): virtual contexts, gpu preference. |
danakj
2016/06/29 18:25:54
can remove preference here :)
piman
2016/06/29 20:28:51
So, I wouldn't say it's handled yet, the client st
|
- context_ = gl::init::CreateGLContext(gpu_state_->share_group(), |
- surface_.get(), gl::PreferIntegratedGpu); |
+ context_ = gl::init::CreateGLContext( |
+ gpu_state_->share_group(), surface_.get(), attrib_helper.gpu_preference); |
if (!context_.get()) |
return false; |
@@ -161,8 +161,8 @@ bool CommandBufferDriver::Initialize( |
gpu::gles2::DisallowedFeatures disallowed_features; |
- if (!decoder_->Initialize(surface_, context_, offscreen, gfx::Size(1, 1), |
- disallowed_features, attrib_helper)) |
+ if (!decoder_->Initialize(surface_, context_, offscreen, disallowed_features, |
+ attrib_helper)) |
return false; |
command_buffer_->SetPutOffsetChangeCallback(base::Bind( |