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

Unified Diff: content/renderer/media/rtc_video_decoder_factory.cc

Issue 1458683002: RTCVideoDecoder: add Destroy() static method for RTCVideoDecoderFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_video_decoder_factory.cc
diff --git a/content/renderer/media/rtc_video_decoder_factory.cc b/content/renderer/media/rtc_video_decoder_factory.cc
index 4e99ab5e309e5d7de3bb2b967093d3ce03d2e32a..e65ac03375be1ebb7d361e82d3f91dbb9075c3e2 100644
--- a/content/renderer/media/rtc_video_decoder_factory.cc
+++ b/content/renderer/media/rtc_video_decoder_factory.cc
@@ -29,7 +29,7 @@ webrtc::VideoDecoder* RTCVideoDecoderFactory::CreateVideoDecoder(
void RTCVideoDecoderFactory::DestroyVideoDecoder(
webrtc::VideoDecoder* decoder) {
DVLOG(2) << __FUNCTION__;
- gpu_factories_->GetTaskRunner()->DeleteSoon(FROM_HERE, decoder);
+ RTCVideoDecoder::Destroy(decoder, gpu_factories_);
}
} // namespace content
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698