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

Side by Side Diff: media/filters/gpu_video_decoder.h

Issue 395703002: Fold {Audio|Video}Decoder::Stop() into the dtor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/filters/ffmpeg_video_decoder_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const scoped_refptr<MediaLog>& media_log); 42 const scoped_refptr<MediaLog>& media_log);
43 43
44 // VideoDecoder implementation. 44 // VideoDecoder implementation.
45 virtual void Initialize(const VideoDecoderConfig& config, 45 virtual void Initialize(const VideoDecoderConfig& config,
46 bool low_delay, 46 bool low_delay,
47 const PipelineStatusCB& status_cb, 47 const PipelineStatusCB& status_cb,
48 const OutputCB& output_cb) OVERRIDE; 48 const OutputCB& output_cb) OVERRIDE;
49 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer, 49 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer,
50 const DecodeCB& decode_cb) OVERRIDE; 50 const DecodeCB& decode_cb) OVERRIDE;
51 virtual void Reset(const base::Closure& closure) OVERRIDE; 51 virtual void Reset(const base::Closure& closure) OVERRIDE;
52 virtual void Stop() OVERRIDE;
53 virtual bool NeedsBitstreamConversion() const OVERRIDE; 52 virtual bool NeedsBitstreamConversion() const OVERRIDE;
54 virtual bool CanReadWithoutStalling() const OVERRIDE; 53 virtual bool CanReadWithoutStalling() const OVERRIDE;
55 virtual int GetMaxDecodeRequests() const OVERRIDE; 54 virtual int GetMaxDecodeRequests() const OVERRIDE;
56 55
57 // VideoDecodeAccelerator::Client implementation. 56 // VideoDecodeAccelerator::Client implementation.
58 virtual void ProvidePictureBuffers(uint32 count, 57 virtual void ProvidePictureBuffers(uint32 count,
59 const gfx::Size& size, 58 const gfx::Size& size,
60 uint32 texture_target) OVERRIDE; 59 uint32 texture_target) OVERRIDE;
61 virtual void DismissPictureBuffer(int32 id) OVERRIDE; 60 virtual void DismissPictureBuffer(int32 id) OVERRIDE;
62 virtual void PictureReady(const media::Picture& picture) OVERRIDE; 61 virtual void PictureReady(const media::Picture& picture) OVERRIDE;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // Bound to factories_->GetMessageLoop(). 189 // Bound to factories_->GetMessageLoop().
191 // NOTE: Weak pointers must be invalidated before all other member variables. 190 // NOTE: Weak pointers must be invalidated before all other member variables.
192 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; 191 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_;
193 192
194 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 193 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
195 }; 194 };
196 195
197 } // namespace media 196 } // namespace media
198 197
199 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 198 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/filters/ffmpeg_video_decoder_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698