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

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..2f2ce98439c3bde6fbeeee6789a28d8a55508d6a 100644
--- a/content/common/gpu/media/mac_video_decode_accelerator.mm
+++ b/content/common/gpu/media/mac_video_decode_accelerator.mm
@@ -93,13 +93,13 @@ 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) {
+void MacVideoDecodeAccelerator::SetCGLContext() {
Pawel Osciak 2012/07/27 20:08:15 Not needed anymore...
Ami GONE FROM CHROMIUM 2012/07/27 20:22:39 Done. (the joys of editing code without the benefi
DCHECK(CalledOnValidThread());
cgl_context_ = cgl_context;
}
« 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