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

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: gyp fix 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
« no previous file with comments | « components/mus/gles2/command_buffer_driver.cc ('k') | components/mus/surfaces/surfaces_context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0119e3f4b98231c72dcaf877dbc9660ab2f3a73e..84363b15cfe4a7e91965e21b287a3c9eafb7f061 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();
« no previous file with comments | « components/mus/gles2/command_buffer_driver.cc ('k') | components/mus/surfaces/surfaces_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698