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

Unified Diff: gpu/ipc/service/gpu_command_buffer_stub.cc

Issue 2347383002: X11: Use better visuals for OpenGL (Closed)
Patch Set: auto* Created 4 years, 3 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 | « gpu/ipc/service/gpu_channel_manager.cc ('k') | media/gpu/avda_picture_buffer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_command_buffer_stub.cc
diff --git a/gpu/ipc/service/gpu_command_buffer_stub.cc b/gpu/ipc/service/gpu_command_buffer_stub.cc
index 412d9a97182600dd249a90304302123b615ba887..b61e90231121d0cbd6d8dd18e36ef33982d41e9f 100644
--- a/gpu/ipc/service/gpu_command_buffer_stub.cc
+++ b/gpu/ipc/service/gpu_command_buffer_stub.cc
@@ -535,9 +535,9 @@ bool GpuCommandBufferStub::Initialize(
scoped_refptr<gl::GLContext> context;
gl::GLShareGroup* gl_share_group = channel_->share_group();
if (use_virtualized_gl_context_ && gl_share_group) {
- context = gl_share_group->GetSharedContext();
+ context = gl_share_group->GetSharedContext(surface_.get());
if (!context.get()) {
- context = gl::init::CreateGLContext(gl_share_group, default_surface,
+ context = gl::init::CreateGLContext(gl_share_group, surface_.get(),
init_params.attribs.gpu_preference);
if (!context.get()) {
DLOG(ERROR) << "Failed to create shared context for virtualization.";
@@ -546,7 +546,7 @@ bool GpuCommandBufferStub::Initialize(
// Ensure that context creation did not lose track of the intended
// gl_share_group.
DCHECK(context->share_group() == gl_share_group);
- gl_share_group->SetSharedContext(context.get());
+ gl_share_group->SetSharedContext(surface_.get(), context.get());
}
// This should be either:
// (1) a non-virtual GL context, or
« no previous file with comments | « gpu/ipc/service/gpu_channel_manager.cc ('k') | media/gpu/avda_picture_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698