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

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

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.h
diff --git a/content/common/gpu/media/mac_video_decode_accelerator.h b/content/common/gpu/media/mac_video_decode_accelerator.h
index 2aa3830b5dcf9dd9e750d8ea36711b43866908ca..5985c9c16f87b5fb97a0005320ad77f6032e3e63 100644
--- a/content/common/gpu/media/mac_video_decode_accelerator.h
+++ b/content/common/gpu/media/mac_video_decode_accelerator.h
@@ -32,12 +32,10 @@ class CONTENT_EXPORT MacVideoDecodeAccelerator
public base::NonThreadSafe {
public:
// Does not take ownership of |client| which must outlive |*this|.
- MacVideoDecodeAccelerator(media::VideoDecodeAccelerator::Client* client);
+ MacVideoDecodeAccelerator(CGLContextObj cgl_context,
+ media::VideoDecodeAccelerator::Client* client);
virtual ~MacVideoDecodeAccelerator();
- // Set the OpenGL context to use.
- void SetCGLContext(CGLContextObj cgl_context);
-
// media::VideoDecodeAccelerator implementation.
virtual bool Initialize(media::VideoCodecProfile profile) OVERRIDE;
virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698