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

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

Issue 547913002: MediaLog: Log selected audio/video decoder name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 6 years, 3 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
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 24 matching lines...) Expand all
35 // GetMessageLoop(). 35 // GetMessageLoop().
36 class MEDIA_EXPORT GpuVideoDecoder 36 class MEDIA_EXPORT GpuVideoDecoder
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 const scoped_refptr<MediaLog>& media_log); 42 const scoped_refptr<MediaLog>& media_log);
43 43
44 // VideoDecoder implementation. 44 // VideoDecoder implementation.
45 virtual std::string GetDisplayName() const OVERRIDE;
45 virtual void Initialize(const VideoDecoderConfig& config, 46 virtual void Initialize(const VideoDecoderConfig& config,
46 bool low_delay, 47 bool low_delay,
47 const PipelineStatusCB& status_cb, 48 const PipelineStatusCB& status_cb,
48 const OutputCB& output_cb) OVERRIDE; 49 const OutputCB& output_cb) OVERRIDE;
49 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer, 50 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer,
50 const DecodeCB& decode_cb) OVERRIDE; 51 const DecodeCB& decode_cb) OVERRIDE;
51 virtual void Reset(const base::Closure& closure) OVERRIDE; 52 virtual void Reset(const base::Closure& closure) OVERRIDE;
52 virtual bool NeedsBitstreamConversion() const OVERRIDE; 53 virtual bool NeedsBitstreamConversion() const OVERRIDE;
53 virtual bool CanReadWithoutStalling() const OVERRIDE; 54 virtual bool CanReadWithoutStalling() const OVERRIDE;
54 virtual int GetMaxDecodeRequests() const OVERRIDE; 55 virtual int GetMaxDecodeRequests() const OVERRIDE;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // Bound to factories_->GetMessageLoop(). 190 // Bound to factories_->GetMessageLoop().
190 // NOTE: Weak pointers must be invalidated before all other member variables. 191 // NOTE: Weak pointers must be invalidated before all other member variables.
191 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; 192 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_;
192 193
193 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 194 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
194 }; 195 };
195 196
196 } // namespace media 197 } // namespace media
197 198
198 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 199 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698