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

Unified Diff: cc/test/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
Index: cc/test/test_in_process_context_provider.cc
diff --git a/cc/test/test_in_process_context_provider.cc b/cc/test/test_in_process_context_provider.cc
index 43f8196156ed448689c7edc31da319f76248d5b2..2a129829215163c56802b596db1909639d6f02c1 100644
--- a/cc/test/test_in_process_context_provider.cc
+++ b/cc/test/test_in_process_context_provider.cc
@@ -39,13 +39,12 @@ std::unique_ptr<gpu::GLInProcessContext> CreateTestInProcessContext(
attribs.sample_buffers = 0;
attribs.fail_if_major_perf_caveat = false;
attribs.bind_generates_resource = false;
- gl::GpuPreference gpu_preference = gl::PreferDiscreteGpu;
std::unique_ptr<gpu::GLInProcessContext> context =
base::WrapUnique(gpu::GLInProcessContext::Create(
nullptr, nullptr, is_offscreen, gfx::kNullAcceleratedWidget,
- gfx::Size(1, 1), shared_context, attribs, gpu_preference,
- gpu::SharedMemoryLimits(), gpu_memory_buffer_manager, image_factory));
+ shared_context, attribs, gpu::SharedMemoryLimits(),
+ gpu_memory_buffer_manager, image_factory));
DCHECK(context);
return context;
« no previous file with comments | « blimp/client/feature/compositor/blimp_context_provider.cc ('k') | components/display_compositor/gl_helper_benchmark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698