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

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

Issue 2480373002: Refactor context creation parameters into a struct. (Closed)
Patch Set: address piman's comments 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 2b179a7b9b88a0a404c234452dc429faaaff48d4..fa6912e6e3274576314d2fe55f3c3acee38fe69e 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 @@ TEST_F(GLContextVirtualTest, Reinitialize) {
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));
+ EXPECT_TRUE(context->Initialize(GetGLSurface(), gl::GLContextAttribs()));
EXPECT_TRUE(context->MakeCurrent(GetGLSurface()));
}
{
@@ -53,7 +53,7 @@ TEST_F(GLContextVirtualTest, Reinitialize) {
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));
+ EXPECT_TRUE(context->Initialize(GetGLSurface(), gl::GLContextAttribs()));
EXPECT_TRUE(context->MakeCurrent(GetGLSurface()));
}
}

Powered by Google App Engine
This is Rietveld 408576698