| 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 84363b15cfe4a7e91965e21b287a3c9eafb7f061..0119e3f4b98231c72dcaf877dbc9660ab2f3a73e 100644
|
| --- a/components/mus/public/cpp/lib/gles2_context.cc
|
| +++ b/components/mus/public/cpp/lib/gles2_context.cc
|
| @@ -54,6 +54,7 @@
|
| 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;
|
| @@ -62,9 +63,9 @@
|
| if (!attributes.Parse(attribs))
|
| return false;
|
| command_buffer_proxy_impl_ = gpu::CommandBufferProxyImpl::Create(
|
| - std::move(gpu_channel_host), surface_handle, shared_command_buffer,
|
| - stream_id, stream_priority, attributes, active_url,
|
| - std::move(task_runner));
|
| + 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));
|
| if (!command_buffer_proxy_impl_)
|
| return false;
|
| command_buffer = command_buffer_proxy_impl_.get();
|
|
|