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

Unified Diff: components/mus/surfaces/surfaces_context_provider.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
Index: components/mus/surfaces/surfaces_context_provider.cc
diff --git a/components/mus/surfaces/surfaces_context_provider.cc b/components/mus/surfaces/surfaces_context_provider.cc
index cd2928889268098ce7a10f3183e3b48266d4550b..291a4402eb51732e2c38cdd1f00040abff0daf63 100644
--- a/components/mus/surfaces/surfaces_context_provider.cc
+++ b/components/mus/surfaces/surfaces_context_provider.cc
@@ -59,14 +59,12 @@ SurfacesContextProvider::SurfacesContextProvider(
attributes.sample_buffers = 0;
attributes.bind_generates_resource = false;
attributes.lose_context_when_out_of_memory = true;
- gl::GpuPreference gpu_preference = gl::PreferIntegratedGpu;
GURL active_url;
scoped_refptr<base::SingleThreadTaskRunner> task_runner =
base::ThreadTaskRunnerHandle::Get();
command_buffer_proxy_impl_ = gpu::CommandBufferProxyImpl::Create(
- service->gpu_channel_local(), widget, gfx::Size(),
- shared_command_buffer, stream_id, stream_priority, attributes,
- active_url, gpu_preference, task_runner);
+ service->gpu_channel_local(), widget, shared_command_buffer, stream_id,
+ stream_priority, attributes, active_url, task_runner);
command_buffer_proxy_impl_->SetSwapBuffersCompletionCallback(
base::Bind(&SurfacesContextProvider::OnGpuSwapBuffersCompleted,
base::Unretained(this)));
« no previous file with comments | « components/mus/public/cpp/lib/gles2_context.cc ('k') | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698