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

Unified Diff: components/mus/gles2/command_buffer_driver.cc

Issue 2107783003: Pass initial size and GPU preference via context attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gpu/ipc/common/OWNERS presubmit Created 4 years, 6 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: 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(

Powered by Google App Engine
This is Rietveld 408576698