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

Side by Side Diff: media/base/video_decoder.h

Issue 18580008: Rename VideoDecoder::HasOutputFrameAvailable() to CanReadWithoutStalling(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: name change and drop disabled (invalid) test Created 7 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 | « no previous file | media/base/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_BASE_VIDEO_DECODER_H_ 5 #ifndef MEDIA_BASE_VIDEO_DECODER_H_
6 #define MEDIA_BASE_VIDEO_DECODER_H_ 6 #define MEDIA_BASE_VIDEO_DECODER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // that return formats with an alpha channel. 81 // that return formats with an alpha channel.
82 virtual bool HasAlpha() const; 82 virtual bool HasAlpha() const;
83 83
84 // Returns true if the decoder needs bitstream conversion before decoding. 84 // Returns true if the decoder needs bitstream conversion before decoding.
85 virtual bool NeedsBitstreamConversion() const; 85 virtual bool NeedsBitstreamConversion() const;
86 86
87 // Returns true if the decoder currently has the ability to decode and return 87 // Returns true if the decoder currently has the ability to decode and return
88 // a VideoFrame. Most implementations can allocate a new VideoFrame and hence 88 // a VideoFrame. Most implementations can allocate a new VideoFrame and hence
89 // this will always return true. Override and return false for decoders that 89 // this will always return true. Override and return false for decoders that
90 // use a fixed set of VideoFrames for decoding. 90 // use a fixed set of VideoFrames for decoding.
91 virtual bool HasOutputFrameAvailable() const; 91 virtual bool CanReadWithoutStalling() const;
92 92
93 private: 93 private:
94 DISALLOW_COPY_AND_ASSIGN(VideoDecoder); 94 DISALLOW_COPY_AND_ASSIGN(VideoDecoder);
95 }; 95 };
96 96
97 } // namespace media 97 } // namespace media
98 98
99 #endif // MEDIA_BASE_VIDEO_DECODER_H_ 99 #endif // MEDIA_BASE_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698