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

Side by Side Diff: content/common/gpu/media/vaapi_video_decode_accelerator.h

Issue 11092054: Teach BindToLoop to create callbacks that accept scoped parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: xhwang CR Created 8 years, 2 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 // This file contains an implementation of VideoDecoderAccelerator 5 // This file contains an implementation of VideoDecoderAccelerator
6 // that utilizes hardware video decoder present on Intel CPUs. 6 // that utilizes hardware video decoder present on Intel CPUs.
7 7
8 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ 8 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
9 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ 9 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
10 10
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 base::Thread decoder_thread_; 203 base::Thread decoder_thread_;
204 VaapiH264Decoder decoder_; 204 VaapiH264Decoder decoder_;
205 205
206 int num_frames_at_client_; 206 int num_frames_at_client_;
207 int num_stream_bufs_at_decoder_; 207 int num_stream_bufs_at_decoder_;
208 208
209 // Posted onto ChildThread by the decoder to submit a GPU job to decode 209 // Posted onto ChildThread by the decoder to submit a GPU job to decode
210 // and put the decoded picture into output buffer. Takes ownership of 210 // and put the decoded picture into output buffer. Takes ownership of
211 // the queues' memory. 211 // the queues' memory.
212 void SubmitDecode(int32 output_id, 212 void SubmitDecode(int32 output_id,
213 std::queue<VABufferID>* va_bufs, 213 scoped_ptr<std::queue<VABufferID> > va_bufs,
214 std::queue<VABufferID>* slice_bufs); 214 scoped_ptr<std::queue<VABufferID> > slice_bufs);
215 215
216 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); 216 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator);
217 }; 217 };
218 218
219 } // namespace content 219 } // namespace content
220 220
221 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ 221 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/vaapi_h264_decoder.cc ('k') | content/common/gpu/media/vaapi_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698