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

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

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.cc
diff --git a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
index 77cdd3accac3eaa7990bca98a926fb55f8948e1c..12522a05e009b6713352bb14df7344e96316e06d 100644
--- a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
+++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
@@ -117,7 +117,8 @@ void GpuVideoDecodeAcceleratorHost::Reset() {
Send(new AcceleratedVideoDecoderMsg_Reset(decoder_route_id_));
}
-void GpuVideoDecodeAcceleratorHost::Destroy() {
+void GpuVideoDecodeAcceleratorHost::Destroy(
+ scoped_ptr<VideoDecodeAccelerator> self) {
DCHECK(CalledOnValidThread());
channel_->RemoveRoute(decoder_route_id_);
client_ = NULL;

Powered by Google App Engine
This is Rietveld 408576698