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

Side by Side Diff: content/renderer/media/rtc_video_decoder_factory.cc

Issue 65803002: Replace MessageLoopProxy with SingleThreadTaskRunner for media/filters/ + associated code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 | Annotate | Revision Log
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/location.h" 7 #include "base/location.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h" 9 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h"
10 #include "content/renderer/media/rtc_video_decoder.h" 10 #include "content/renderer/media/rtc_video_decoder.h"
(...skipping 18 matching lines...) Expand all
29 // and the child thread is blocked while this runs. We cannot create new gpu 29 // and the child thread is blocked while this runs. We cannot create new gpu
30 // factories here. Clone one instead. 30 // factories here. Clone one instead.
31 scoped_ptr<RTCVideoDecoder> decoder = 31 scoped_ptr<RTCVideoDecoder> decoder =
32 RTCVideoDecoder::Create(type, gpu_factories_->Clone()); 32 RTCVideoDecoder::Create(type, gpu_factories_->Clone());
33 return decoder.release(); 33 return decoder.release();
34 } 34 }
35 35
36 void RTCVideoDecoderFactory::DestroyVideoDecoder( 36 void RTCVideoDecoderFactory::DestroyVideoDecoder(
37 webrtc::VideoDecoder* decoder) { 37 webrtc::VideoDecoder* decoder) {
38 DVLOG(2) << "DestroyVideoDecoder"; 38 DVLOG(2) << "DestroyVideoDecoder";
39 gpu_factories_->GetMessageLoop()->DeleteSoon(FROM_HERE, decoder); 39 gpu_factories_->GetTaskRunner()->DeleteSoon(FROM_HERE, decoder);
40 } 40 }
41 41
42 } // namespace content 42 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | content/renderer/media/rtc_video_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698