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

Unified Diff: cc/test/test_in_process_context_provider.cc

Issue 429863002: Remove GLInProcessContext::CreateContext() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 5005c06a97575d9a0f5684580737d8c9ec7c989f..6de07d27601468190e367ac0c0b258e869de8b22 100644
--- a/cc/test/test_in_process_context_provider.cc
+++ b/cc/test/test_in_process_context_provider.cc
@@ -34,13 +34,17 @@ scoped_ptr<gpu::GLInProcessContext> CreateTestInProcessContext() {
attribs.fail_if_major_perf_caveat = false;
gfx::GpuPreference gpu_preference = gfx::PreferDiscreteGpu;
- scoped_ptr<gpu::GLInProcessContext> context = make_scoped_ptr(
- gpu::GLInProcessContext::CreateContext(is_offscreen,
- gfx::AcceleratedWidget(),
- gfx::Size(1, 1),
- share_resources,
- attribs,
- gpu_preference));
+ scoped_ptr<gpu::GLInProcessContext> context =
+ make_scoped_ptr(gpu::GLInProcessContext::Create(
+ scoped_refptr<gpu::InProcessCommandBuffer::Service>(),
piman 2014/07/31 02:42:29 nit: NULL should work too.
hj.r.chung 2014/07/31 08:35:35 Done.
+ NULL,
+ is_offscreen,
+ gfx::Size(1, 1),
+ NULL,
+ share_resources,
+ attribs,
+ gpu_preference));
+
DCHECK(context);
return context.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698