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

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

Issue 1228253002: Remove |cgl_context| from VTVideoDecodeAccelerator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 99a782f54c48f52572501ed188d78fba34a0b788..9f78d2301aa56f621228e4dabcf53bb9015bfa8f 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.cc
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc
@@ -358,9 +358,7 @@ scoped_ptr<media::VideoDecodeAccelerator>
GpuVideoDecodeAccelerator::CreateVTVDA() {
scoped_ptr<media::VideoDecodeAccelerator> decoder;
#if defined(OS_MACOSX)
- decoder.reset(new VTVideoDecodeAccelerator(
- static_cast<CGLContextObj>(stub_->decoder()->GetGLContext()->GetHandle()),
- make_context_current_));
+ decoder.reset(new VTVideoDecodeAccelerator(make_context_current_));
#endif
return decoder.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698