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

Unified Diff: gpu/command_buffer/service/gl_context_virtual_unittest.cc

Issue 2497503004: Revert of Refactor context creation parameters into a struct. (Closed)
Patch Set: Created 4 years, 1 month 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 fa6912e6e3274576314d2fe55f3c3acee38fe69e..2b179a7b9b88a0a404c234452dc429faaaff48d4 100644
--- a/gpu/command_buffer/service/gl_context_virtual_unittest.cc
+++ b/gpu/command_buffer/service/gl_context_virtual_unittest.cc
@@ -44,7 +44,7 @@
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::GLContextAttribs()));
+ EXPECT_TRUE(context->Initialize(GetGLSurface(), gl::PreferIntegratedGpu));
EXPECT_TRUE(context->MakeCurrent(GetGLSurface()));
}
{
@@ -53,7 +53,7 @@
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::GLContextAttribs()));
+ EXPECT_TRUE(context->Initialize(GetGLSurface(), gl::PreferIntegratedGpu));
EXPECT_TRUE(context->MakeCurrent(GetGLSurface()));
}
}
« no previous file with comments | « gpu/command_buffer/service/gl_context_virtual.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698