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

Unified Diff: media/gpu/android_video_decode_accelerator_unittest.cc

Issue 2480373002: 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: media/gpu/android_video_decode_accelerator_unittest.cc
diff --git a/media/gpu/android_video_decode_accelerator_unittest.cc b/media/gpu/android_video_decode_accelerator_unittest.cc
index c8d08ddf382c7029545bedb094af7958f61c2a11..52a0f8f0999fd3f333df008ddaa9099fc9f6f799 100644
--- a/media/gpu/android_video_decode_accelerator_unittest.cc
+++ b/media/gpu/android_video_decode_accelerator_unittest.cc
@@ -69,8 +69,10 @@ class AndroidVideoDecodeAcceleratorTest : public testing::Test {
gl::init::ClearGLBindings();
ASSERT_TRUE(gl::init::InitializeGLOneOff());
surface_ = gl::init::CreateOffscreenGLSurface(gfx::Size(1024, 1024));
- context_ = gl::init::CreateGLContext(nullptr, surface_.get(),
- gl::PreferDiscreteGpu);
+ gl::GLContextAttribs context_attribs;
+ context_attribs.gpu_preference = gl::PreferDiscreteGpu;
piman 2016/11/07 21:01:01 nit: ditto, default is fine.
Geoff Lang 2016/11/07 21:36:20 Done.
+ context_ =
+ gl::init::CreateGLContext(nullptr, surface_.get(), context_attribs);
context_->MakeCurrent(surface_.get());
// Start a message loop because AVDA starts a timer task.

Powered by Google App Engine
This is Rietveld 408576698