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

Unified Diff: gpu/command_buffer/client/gl_in_process_context.cc

Issue 429863002: Remove GLInProcessContext::CreateContext() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments 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: gpu/command_buffer/client/gl_in_process_context.cc
diff --git a/gpu/command_buffer/client/gl_in_process_context.cc b/gpu/command_buffer/client/gl_in_process_context.cc
index 33d41563dea137e5d8ec58db8bfce92f9368c443..bfcea4ab878ef4024182ccca297c0ca3be1d23b7 100644
--- a/gpu/command_buffer/client/gl_in_process_context.cc
+++ b/gpu/command_buffer/client/gl_in_process_context.cc
@@ -312,31 +312,6 @@ GLInProcessContextAttribs::GLInProcessContextAttribs()
fail_if_major_perf_caveat(-1),
lose_context_when_out_of_memory(-1) {}
-// static
-GLInProcessContext* GLInProcessContext::CreateContext(
- bool is_offscreen,
- gfx::AcceleratedWidget window,
- const gfx::Size& size,
- bool share_resources,
- const GLInProcessContextAttribs& attribs,
- gfx::GpuPreference gpu_preference) {
- scoped_ptr<GLInProcessContextImpl> context(
- new GLInProcessContextImpl());
- if (!context->Initialize(
- NULL /* surface */,
- is_offscreen,
- share_resources,
- NULL,
- window,
- size,
- attribs,
- gpu_preference,
- scoped_refptr<InProcessCommandBuffer::Service>()))
- return NULL;
-
- return context.release();
-}
-
GLInProcessContext* GLInProcessContext::Create(
scoped_refptr<gpu::InProcessCommandBuffer::Service> service,
scoped_refptr<gfx::GLSurface> surface,
@@ -359,7 +334,7 @@ GLInProcessContext* GLInProcessContext::Create(
is_offscreen,
use_global_share_group,
share_context,
- gfx::kNullAcceleratedWidget,
+ window,
size,
attribs,
gpu_preference,

Powered by Google App Engine
This is Rietveld 408576698