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

Unified Diff: gpu/ipc/client/command_buffer_proxy_impl.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 | « gpu/ipc/client/command_buffer_proxy_impl.h ('k') | gpu/ipc/client/gpu_in_process_context_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/command_buffer_proxy_impl.cc
diff --git a/gpu/ipc/client/command_buffer_proxy_impl.cc b/gpu/ipc/client/command_buffer_proxy_impl.cc
index d26b7d49835d6d1aba20c8af4756e6f0905a460d..9c1ec56129bfe93855e8fcf7c8e57bed88371689 100644
--- a/gpu/ipc/client/command_buffer_proxy_impl.cc
+++ b/gpu/ipc/client/command_buffer_proxy_impl.cc
@@ -71,13 +71,11 @@ CommandBufferProxyImpl::CommandBufferProxyImpl(int channel_id,
std::unique_ptr<CommandBufferProxyImpl> CommandBufferProxyImpl::Create(
scoped_refptr<GpuChannelHost> host,
gpu::SurfaceHandle surface_handle,
- const gfx::Size& size,
CommandBufferProxyImpl* share_group,
int32_t stream_id,
gpu::GpuStreamPriority stream_priority,
const gpu::gles2::ContextCreationAttribHelper& attribs,
const GURL& active_url,
- gl::GpuPreference gpu_preference,
scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
DCHECK(!share_group || (stream_id == share_group->stream_id_));
TRACE_EVENT1("gpu", "GpuChannelHost::CreateViewCommandBuffer",
@@ -85,14 +83,12 @@ std::unique_ptr<CommandBufferProxyImpl> CommandBufferProxyImpl::Create(
GPUCreateCommandBufferConfig init_params;
init_params.surface_handle = surface_handle;
- init_params.size = size;
init_params.share_group_id =
share_group ? share_group->route_id_ : MSG_ROUTING_NONE;
init_params.stream_id = stream_id;
init_params.stream_priority = stream_priority;
init_params.attribs = attribs;
init_params.active_url = active_url;
- init_params.gpu_preference = gpu_preference;
int32_t route_id = host->GenerateRouteID();
std::unique_ptr<CommandBufferProxyImpl> command_buffer = base::WrapUnique(
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.h ('k') | gpu/ipc/client/gpu_in_process_context_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698