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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/rtc_video_decoder_factory.h" 5 #include "content/renderer/media/rtc_video_decoder_factory.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "content/renderer/media/rtc_video_decoder.h" 8 #include "content/renderer/media/rtc_video_decoder.h"
9 #include "media/renderers/gpu_video_accelerator_factories.h" 9 #include "media/renderers/gpu_video_accelerator_factories.h"
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 webrtc::VideoDecoder* RTCVideoDecoderFactory::CreateVideoDecoder( 23 webrtc::VideoDecoder* RTCVideoDecoderFactory::CreateVideoDecoder(
24 webrtc::VideoCodecType type) { 24 webrtc::VideoCodecType type) {
25 DVLOG(2) << __FUNCTION__; 25 DVLOG(2) << __FUNCTION__;
26 return RTCVideoDecoder::Create(type, gpu_factories_).release(); 26 return RTCVideoDecoder::Create(type, gpu_factories_).release();
27 } 27 }
28 28
29 void RTCVideoDecoderFactory::DestroyVideoDecoder( 29 void RTCVideoDecoderFactory::DestroyVideoDecoder(
30 webrtc::VideoDecoder* decoder) { 30 webrtc::VideoDecoder* decoder) {
31 DVLOG(2) << __FUNCTION__; 31 DVLOG(2) << __FUNCTION__;
32 gpu_factories_->GetTaskRunner()->DeleteSoon(FROM_HERE, decoder); 32 RTCVideoDecoder::Destroy(decoder, gpu_factories_);
33 } 33 }
34 34
35 } // namespace content 35 } // namespace content
OLDNEW
« 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