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

Unified Diff: components/display_compositor/gl_helper_benchmark.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 | « cc/test/test_in_process_context_provider.cc ('k') | components/display_compositor/gl_helper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 89df71c474ae18a3e3894b9090d1a10fa1c083ae..bf1cbb5428aacab29d37296e2481ccff134c6c94 100644
--- a/components/display_compositor/gl_helper_benchmark.cc
+++ b/components/display_compositor/gl_helper_benchmark.cc
@@ -64,15 +64,15 @@ class GLHelperBenchmark : public testing::Test {
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, gl::PreferDiscreteGpu, gpu::SharedMemoryLimits(),
+ attributes, gpu::SharedMemoryLimits(),
nullptr, /* gpu_memory_buffer_manager */
nullptr /* image_factory */));
gl_ = context_->GetImplementation();
« no previous file with comments | « cc/test/test_in_process_context_provider.cc ('k') | components/display_compositor/gl_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698