Index: components/display_compositor/gl_helper_benchmark.cc |
diff --git a/components/display_compositor/gl_helper_benchmark.cc b/components/display_compositor/gl_helper_benchmark.cc |
index bf1cbb5428aacab29d37296e2481ccff134c6c94..89df71c474ae18a3e3894b9090d1a10fa1c083ae 100644 |
--- a/components/display_compositor/gl_helper_benchmark.cc |
+++ b/components/display_compositor/gl_helper_benchmark.cc |
@@ -64,15 +64,15 @@ |
attributes.samples = 4; |
attributes.sample_buffers = 1; |
attributes.bind_generates_resource = false; |
- attributes.gpu_preference = gl::PreferDiscreteGpu; |
context_.reset(gpu::GLInProcessContext::Create( |
nullptr, /* service */ |
nullptr, /* surface */ |
true, /* offscreen */ |
gfx::kNullAcceleratedWidget, /* window */ |
+ gfx::Size(1, 1), /* size */ |
nullptr, /* share_context */ |
- attributes, gpu::SharedMemoryLimits(), |
+ attributes, gl::PreferDiscreteGpu, gpu::SharedMemoryLimits(), |
nullptr, /* gpu_memory_buffer_manager */ |
nullptr /* image_factory */)); |
gl_ = context_->GetImplementation(); |