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

Unified Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.h

Issue 10749019: VideoDecodeAccelerator now SupportsWeakPtr instead of being RefCountedThreadSafe. (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/client/gpu_video_decode_accelerator_host.h
diff --git a/content/common/gpu/client/gpu_video_decode_accelerator_host.h b/content/common/gpu/client/gpu_video_decode_accelerator_host.h
index 0339e0f43dfd5ef4852a50fd9372cb254813b09f..1b9a6e1241d1be5c0a9674730e393f1d9168e27b 100644
--- a/content/common/gpu/client/gpu_video_decode_accelerator_host.h
+++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.h
@@ -19,13 +19,13 @@ class GpuChannelHost;
class GpuVideoDecodeAcceleratorHost
: public IPC::Listener,
public media::VideoDecodeAccelerator,
- public base::NonThreadSafe,
- public base::SupportsWeakPtr<GpuVideoDecodeAcceleratorHost> {
+ public base::NonThreadSafe {
public:
// |channel| is used to send IPC messages to GPU process.
GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel,
int32 decoder_route_id,
media::VideoDecodeAccelerator::Client* client);
+ virtual ~GpuVideoDecodeAcceleratorHost();
// IPC::Listener implementation.
virtual void OnChannelError() OVERRIDE;
@@ -39,10 +39,7 @@ class GpuVideoDecodeAcceleratorHost
virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE;
virtual void Flush() OVERRIDE;
virtual void Reset() OVERRIDE;
- virtual void Destroy() OVERRIDE;
-
- protected:
- virtual ~GpuVideoDecodeAcceleratorHost();
+ virtual void Destroy(bool pass_ownership) OVERRIDE;
private:
void Send(IPC::Message* message);

Powered by Google App Engine
This is Rietveld 408576698