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

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

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
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 <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const StatisticsCB& statistics_cb) OVERRIDE; 66 const StatisticsCB& statistics_cb) OVERRIDE;
67 virtual void Read(const ReadCB& read_cb) OVERRIDE; 67 virtual void Read(const ReadCB& read_cb) OVERRIDE;
68 virtual void Reset(const base::Closure& closure) OVERRIDE; 68 virtual void Reset(const base::Closure& closure) OVERRIDE;
69 virtual void Stop(const base::Closure& closure) OVERRIDE; 69 virtual void Stop(const base::Closure& closure) OVERRIDE;
70 virtual const gfx::Size& natural_size() OVERRIDE; 70 virtual const gfx::Size& natural_size() OVERRIDE;
71 virtual bool HasAlpha() const OVERRIDE; 71 virtual bool HasAlpha() const OVERRIDE;
72 virtual void PrepareForShutdownHack() OVERRIDE; 72 virtual void PrepareForShutdownHack() OVERRIDE;
73 73
74 // VideoDecodeAccelerator::Client implementation. 74 // VideoDecodeAccelerator::Client implementation.
75 virtual void NotifyInitializeDone() OVERRIDE; 75 virtual void NotifyInitializeDone() OVERRIDE;
76 virtual void ProvidePictureBuffers(uint32 count, 76 virtual void ProvidePictureBuffers(
77 const gfx::Size& size) OVERRIDE; 77 uint32 count,
78 const gfx::Size& size,
79 media::VideoDecodeAccelerator::TextureTarget texture_target) OVERRIDE;
78 virtual void DismissPictureBuffer(int32 id) OVERRIDE; 80 virtual void DismissPictureBuffer(int32 id) OVERRIDE;
79 virtual void PictureReady(const media::Picture& picture) OVERRIDE; 81 virtual void PictureReady(const media::Picture& picture) OVERRIDE;
80 virtual void NotifyEndOfBitstreamBuffer(int32 id) OVERRIDE; 82 virtual void NotifyEndOfBitstreamBuffer(int32 id) OVERRIDE;
81 virtual void NotifyFlushDone() OVERRIDE; 83 virtual void NotifyFlushDone() OVERRIDE;
82 virtual void NotifyResetDone() OVERRIDE; 84 virtual void NotifyResetDone() OVERRIDE;
83 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; 85 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE;
84 86
85 private: 87 private:
86 enum State { 88 enum State {
87 kNormal, 89 kNormal,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 210
209 // Indicates decoding error occurred. 211 // Indicates decoding error occurred.
210 bool error_occured_; 212 bool error_occured_;
211 213
212 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 214 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
213 }; 215 };
214 216
215 } // namespace media 217 } // namespace media
216 218
217 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 219 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698