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

Unified Diff: content/common/gpu/client/context_provider_command_buffer.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: content/common/gpu/client/context_provider_command_buffer.cc
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc
index 857d0938615048c7e673d780452c4fe6d9837c00..a1411c8ab01f1dca3b654cbf2b2687a1a7a97283 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/content/common/gpu/client/context_provider_command_buffer.cc
@@ -59,7 +59,6 @@ ContextProviderCommandBuffer::ContextProviderCommandBuffer(
gpu::GpuStreamPriority stream_priority,
gpu::SurfaceHandle surface_handle,
const GURL& active_url,
- gl::GpuPreference gpu_preference,
bool automatic_flushes,
bool support_locking,
const gpu::SharedMemoryLimits& memory_limits,
@@ -70,7 +69,6 @@ ContextProviderCommandBuffer::ContextProviderCommandBuffer(
stream_priority_(stream_priority),
surface_handle_(surface_handle),
active_url_(active_url),
- gpu_preference_(gpu_preference),
automatic_flushes_(automatic_flushes),
support_locking_(support_locking),
memory_limits_(memory_limits),
@@ -160,10 +158,8 @@ bool ContextProviderCommandBuffer::BindToCurrentThread() {
if (!task_runner)
task_runner = base::ThreadTaskRunnerHandle::Get();
command_buffer_ = gpu::CommandBufferProxyImpl::Create(
- std::move(channel_), surface_handle_, gfx::Size(),
- shared_command_buffer, stream_id_, stream_priority_,
- attributes_, active_url_, gpu_preference_,
- std::move(task_runner));
+ std::move(channel_), surface_handle_, shared_command_buffer, stream_id_,
+ stream_priority_, attributes_, active_url_, std::move(task_runner));
if (!command_buffer_) {
DLOG(ERROR) << "GpuChannelHost failed to create command buffer.";
command_buffer_metrics::UmaRecordContextInitFailed(context_type_);
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.h ('k') | content/renderer/pepper/pepper_video_encoder_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698