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

Unified Diff: content/common/gpu/media/mac_video_decode_accelerator.mm

Issue 10827074: Replace the explicit *VDA::Set{CGL,Egl,Glx}Context() methods with ctor params. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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/mac_video_decode_accelerator.mm
diff --git a/content/common/gpu/media/mac_video_decode_accelerator.mm b/content/common/gpu/media/mac_video_decode_accelerator.mm
index 7aa9c6c66d69a07b860cf79ad0ea3fd43e238bdb..94b67808df60cf78ecfa23be8ef778adb97cbc66 100644
--- a/content/common/gpu/media/mac_video_decode_accelerator.mm
+++ b/content/common/gpu/media/mac_video_decode_accelerator.mm
@@ -93,17 +93,12 @@ static bool BindImageToTexture(CGLContextObj context,
}
MacVideoDecodeAccelerator::MacVideoDecodeAccelerator(
- media::VideoDecodeAccelerator::Client* client)
+ CGLContextObj cgl_context, media::VideoDecodeAccelerator::Client* client)
: client_(client),
- cgl_context_(NULL),
+ cgl_context_(cgl_context),
did_build_config_record_(false) {
}
-void MacVideoDecodeAccelerator::SetCGLContext(CGLContextObj cgl_context) {
- DCHECK(CalledOnValidThread());
- cgl_context_ = cgl_context;
-}
-
bool MacVideoDecodeAccelerator::Initialize(media::VideoCodecProfile profile) {
DCHECK(CalledOnValidThread());
« no previous file with comments | « content/common/gpu/media/mac_video_decode_accelerator.h ('k') | content/common/gpu/media/omx_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698