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. |