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

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

Issue 10749019: VideoDecodeAccelerator now SupportsWeakPtr instead of being RefCountedThreadSafe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure rebase 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 55cb55bc250129ec8a64998360c60e994f968eca..0a0517f92d937c638df0027644d8b142f1f0cfe9 100644
--- a/content/common/gpu/media/mac_video_decode_accelerator.h
+++ b/content/common/gpu/media/mac_video_decode_accelerator.h
@@ -33,6 +33,7 @@ class CONTENT_EXPORT MacVideoDecodeAccelerator
public:
// Does not take ownership of |client| which must outlive |*this|.
MacVideoDecodeAccelerator(media::VideoDecodeAccelerator::Client* client);
+ virtual ~MacVideoDecodeAccelerator();
// Set the OpenGL context to use.
void SetCGLContext(CGLContextObj cgl_context);
@@ -45,10 +46,9 @@ class CONTENT_EXPORT MacVideoDecodeAccelerator
virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE;
virtual void Flush() OVERRIDE;
virtual void Reset() OVERRIDE;
- virtual void Destroy() OVERRIDE;
+ virtual void Destroy(bool pass_ownership) OVERRIDE;
private:
- virtual ~MacVideoDecodeAccelerator();
// Callback for a completed frame.
void OnFrameReady(int32 bitstream_buffer_id,

Powered by Google App Engine
This is Rietveld 408576698