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

Unified Diff: ui/compositor/test/in_process_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
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/in_process_context_provider.cc
diff --git a/ui/compositor/test/in_process_context_provider.cc b/ui/compositor/test/in_process_context_provider.cc
index d2ccd5882ceb749c78bf851b0c8d4ad2ebf876c2..1e6bc30150e09a43d7ea0d77b66676319def858d 100644
--- a/ui/compositor/test/in_process_context_provider.cc
+++ b/ui/compositor/test/in_process_context_provider.cc
@@ -83,14 +83,12 @@ bool InProcessContextProvider::BindToCurrentThread() {
DCHECK(context_thread_checker_.CalledOnValidThread());
if (!context_) {
- gl::GpuPreference gpu_preference = gl::PreferDiscreteGpu;
context_.reset(gpu::GLInProcessContext::Create(
nullptr, /* service */
nullptr, /* surface */
!window_, /* is_offscreen */
- window_, gfx::Size(1, 1),
- (shared_context_ ? shared_context_->context_.get() : nullptr), attribs_,
- gpu_preference, gpu::SharedMemoryLimits(), gpu_memory_buffer_manager_,
+ window_, (shared_context_ ? shared_context_->context_.get() : nullptr),
+ attribs_, gpu::SharedMemoryLimits(), gpu_memory_buffer_manager_,
image_factory_));
if (!context_)
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698