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

Side by Side Diff: chrome/gpu/gpu_video_decoder.h

Issue 4113006: Rename UploadToVideoFrame to ConvertToVideoFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | chrome/gpu/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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_GPU_GPU_VIDEO_DECODER_H_ 5 #ifndef CHROME_GPU_GPU_VIDEO_DECODER_H_
6 #define CHROME_GPU_GPU_VIDEO_DECODER_H_ 6 #define CHROME_GPU_GPU_VIDEO_DECODER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 virtual void OnFormatChange(VideoStreamInfo stream_info); 113 virtual void OnFormatChange(VideoStreamInfo stream_info);
114 virtual void ProduceVideoSample(scoped_refptr<Buffer> buffer); 114 virtual void ProduceVideoSample(scoped_refptr<Buffer> buffer);
115 virtual void ConsumeVideoFrame(scoped_refptr<VideoFrame> frame); 115 virtual void ConsumeVideoFrame(scoped_refptr<VideoFrame> frame);
116 116
117 // VideoDecodeContext implementation. 117 // VideoDecodeContext implementation.
118 virtual void* GetDevice(); 118 virtual void* GetDevice();
119 virtual void AllocateVideoFrames( 119 virtual void AllocateVideoFrames(
120 int n, size_t width, size_t height, media::VideoFrame::Format format, 120 int n, size_t width, size_t height, media::VideoFrame::Format format,
121 std::vector<scoped_refptr<media::VideoFrame> >* frames, Task* task); 121 std::vector<scoped_refptr<media::VideoFrame> >* frames, Task* task);
122 virtual void ReleaseAllVideoFrames(); 122 virtual void ReleaseAllVideoFrames();
123 virtual void UploadToVideoFrame(void* buffer, 123 virtual void ConvertToVideoFrame(void* buffer,
124 scoped_refptr<media::VideoFrame> frame, 124 scoped_refptr<media::VideoFrame> frame,
125 Task* task); 125 Task* task);
126 virtual void Destroy(Task* task); 126 virtual void Destroy(Task* task);
127 127
128 // These methods are used in unit test only. 128 // These methods are used in unit test only.
129 void SetVideoDecodeEngine(media::VideoDecodeEngine* engine); 129 void SetVideoDecodeEngine(media::VideoDecodeEngine* engine);
130 void SetGpuVideoDevice(GpuVideoDevice* device); 130 void SetGpuVideoDevice(GpuVideoDevice* device);
131 131
132 private: 132 private:
133 struct PendingAllocation; 133 struct PendingAllocation;
134 134
135 int32 decoder_host_id() { return decoder_host_id_; } 135 int32 decoder_host_id() { return decoder_host_id_; }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 typedef std::map<int32, scoped_refptr<media::VideoFrame> > VideoFrameMap; 195 typedef std::map<int32, scoped_refptr<media::VideoFrame> > VideoFrameMap;
196 VideoFrameMap video_frame_map_; 196 VideoFrameMap video_frame_map_;
197 197
198 media::VideoCodecConfig config_; 198 media::VideoCodecConfig config_;
199 media::VideoCodecInfo info_; 199 media::VideoCodecInfo info_;
200 200
201 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 201 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
202 }; 202 };
203 203
204 #endif // CHROME_GPU_GPU_VIDEO_DECODER_H_ 204 #endif // CHROME_GPU_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/gpu/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698