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

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

Issue 1143223007: media: Reland "Simplify {Audio|Video}Decoder initialization callback." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« 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 26 matching lines...) Expand all
37 : public VideoDecoder, 37 : public VideoDecoder,
38 public VideoDecodeAccelerator::Client { 38 public VideoDecodeAccelerator::Client {
39 public: 39 public:
40 explicit GpuVideoDecoder( 40 explicit GpuVideoDecoder(
41 const scoped_refptr<GpuVideoAcceleratorFactories>& factories); 41 const scoped_refptr<GpuVideoAcceleratorFactories>& factories);
42 42
43 // VideoDecoder implementation. 43 // VideoDecoder implementation.
44 std::string GetDisplayName() const override; 44 std::string GetDisplayName() const override;
45 void Initialize(const VideoDecoderConfig& config, 45 void Initialize(const VideoDecoderConfig& config,
46 bool low_delay, 46 bool low_delay,
47 const PipelineStatusCB& status_cb, 47 const InitCB& init_cb,
48 const OutputCB& output_cb) override; 48 const OutputCB& output_cb) override;
49 void Decode(const scoped_refptr<DecoderBuffer>& buffer, 49 void Decode(const scoped_refptr<DecoderBuffer>& buffer,
50 const DecodeCB& decode_cb) override; 50 const DecodeCB& decode_cb) override;
51 void Reset(const base::Closure& closure) override; 51 void Reset(const base::Closure& closure) override;
52 bool NeedsBitstreamConversion() const override; 52 bool NeedsBitstreamConversion() const override;
53 bool CanReadWithoutStalling() const override; 53 bool CanReadWithoutStalling() const override;
54 int GetMaxDecodeRequests() const override; 54 int GetMaxDecodeRequests() const override;
55 55
56 // VideoDecodeAccelerator::Client implementation. 56 // VideoDecodeAccelerator::Client implementation.
57 void ProvidePictureBuffers(uint32 count, 57 void ProvidePictureBuffers(uint32 count,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // Bound to factories_->GetMessageLoop(). 193 // Bound to factories_->GetMessageLoop().
194 // NOTE: Weak pointers must be invalidated before all other member variables. 194 // NOTE: Weak pointers must be invalidated before all other member variables.
195 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; 195 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_;
196 196
197 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 197 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
198 }; 198 };
199 199
200 } // namespace media 200 } // namespace media
201 201
202 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 202 #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