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

Unified Diff: content/common/gpu/media/gpu_video_decode_accelerator.cc

Issue 645713002: Switch to using make_context_current in VTVideoDecodeAccelerator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vt_errror_handling
Patch Set: Rebase. Created 6 years, 2 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: content/common/gpu/media/gpu_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc
index a830c2ece618c11e30b2921074d6186a8c401786..d3b24361b81d668ef6891a25dc3d888bc3bfa1f2 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.cc
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc
@@ -259,7 +259,8 @@ void GpuVideoDecodeAccelerator::Initialize(
#elif defined(OS_MACOSX)
video_decode_accelerator_.reset(new VTVideoDecodeAccelerator(
static_cast<CGLContextObj>(
- stub_->decoder()->GetGLContext()->GetHandle())));
+ stub_->decoder()->GetGLContext()->GetHandle()),
+ make_context_current_));
#elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) && defined(USE_X11)
scoped_ptr<V4L2Device> device = V4L2Device::Create(V4L2Device::kDecoder);
if (!device.get()) {

Powered by Google App Engine
This is Rietveld 408576698