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

Unified Diff: components/mus/public/cpp/lib/gles2_context.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/public/cpp/lib/gles2_context.cc
diff --git a/components/mus/public/cpp/lib/gles2_context.cc b/components/mus/public/cpp/lib/gles2_context.cc
index 9b388e6b1722a04f8b89d505438cfe6ee64098ac..a9ae69334f84d31beb7de199264d6d1274226149 100644
--- a/components/mus/public/cpp/lib/gles2_context.cc
+++ b/components/mus/public/cpp/lib/gles2_context.cc
@@ -54,7 +54,6 @@ bool GLES2Context::Initialize(const std::vector<int32_t>& attribs,
gpu::CommandBufferProxyImpl* shared_command_buffer = nullptr;
gpu::GpuStreamId stream_id = gpu::GpuStreamId::GPU_STREAM_DEFAULT;
gpu::GpuStreamPriority stream_priority = gpu::GpuStreamPriority::NORMAL;
- gl::GpuPreference gpu_preference = gl::PreferIntegratedGpu;
gpu::gles2::ContextCreationAttribHelper attributes;
// TODO(penghuang): figure a useful active_url.
GURL active_url;
@@ -63,9 +62,9 @@ bool GLES2Context::Initialize(const std::vector<int32_t>& attribs,
if (!attributes.Parse(attribs))
return false;
command_buffer_proxy_impl_ = gpu::CommandBufferProxyImpl::Create(
- std::move(gpu_channel_host), surface_handle, gfx::Size(),
- shared_command_buffer, stream_id, stream_priority, attributes,
- active_url, gpu_preference, std::move(task_runner));
+ std::move(gpu_channel_host), surface_handle, shared_command_buffer,
+ stream_id, stream_priority, attributes, active_url,
+ std::move(task_runner));
if (!command_buffer_proxy_impl_)
return false;
command_buffer = command_buffer_proxy_impl_.get();

Powered by Google App Engine
This is Rietveld 408576698