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

Unified Diff: gpu/command_buffer/service/gl_context_virtual_unittest.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
Index: gpu/command_buffer/service/gl_context_virtual_unittest.cc
diff --git a/gpu/command_buffer/service/gl_context_virtual_unittest.cc b/gpu/command_buffer/service/gl_context_virtual_unittest.cc
index 2da1a4ecaf65bc3c9ab36fdb99a7b62b72a4b890..2b179a7b9b88a0a404c234452dc429faaaff48d4 100644
--- a/gpu/command_buffer/service/gl_context_virtual_unittest.cc
+++ b/gpu/command_buffer/service/gl_context_virtual_unittest.cc
@@ -41,7 +41,7 @@ TEST_F(GLContextVirtualTest, Reinitialize) {
{
scoped_refptr<gl::GLContextStub> base_context = new gl::GLContextStub;
gl::GLShareGroup* share_group = base_context->share_group();
- share_group->SetSharedContext(base_context.get());
+ share_group->SetSharedContext(GetGLSurface(), base_context.get());
scoped_refptr<GLContextVirtual> context(new GLContextVirtual(
share_group, base_context.get(), decoder_->AsWeakPtr()));
EXPECT_TRUE(context->Initialize(GetGLSurface(), gl::PreferIntegratedGpu));
@@ -50,7 +50,7 @@ TEST_F(GLContextVirtualTest, Reinitialize) {
{
scoped_refptr<gl::GLContextStub> base_context = new gl::GLContextStub;
gl::GLShareGroup* share_group = base_context->share_group();
- share_group->SetSharedContext(base_context.get());
+ share_group->SetSharedContext(GetGLSurface(), base_context.get());
scoped_refptr<GLContextVirtual> context(new GLContextVirtual(
share_group, base_context.get(), decoder_->AsWeakPtr()));
EXPECT_TRUE(context->Initialize(GetGLSurface(), gl::PreferIntegratedGpu));
« no previous file with comments | « extensions/browser/api/app_window/app_window_apitest.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698