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

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

Issue 132233041: Add gpu::MailboxHolder to hold state for a gpu::Mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ff7262fa Rebase. Created 6 years, 10 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 | « media/base/video_frame_unittest.cc ('k') | media/filters/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) 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // Enqueue a frame for later delivery (or drop it on the floor if a 99 // Enqueue a frame for later delivery (or drop it on the floor if a
100 // vda->Reset() is in progress) and trigger out-of-line delivery of the oldest 100 // vda->Reset() is in progress) and trigger out-of-line delivery of the oldest
101 // ready frame to the client if there is a pending read. A NULL |frame| 101 // ready frame to the client if there is a pending read. A NULL |frame|
102 // merely triggers delivery, and requires the ready_video_frames_ queue not be 102 // merely triggers delivery, and requires the ready_video_frames_ queue not be
103 // empty. 103 // empty.
104 void EnqueueFrameAndTriggerFrameDelivery( 104 void EnqueueFrameAndTriggerFrameDelivery(
105 const scoped_refptr<VideoFrame>& frame); 105 const scoped_refptr<VideoFrame>& frame);
106 106
107 // Indicate the picture buffer can be reused by the decoder. 107 // Indicate the picture buffer can be reused by the decoder.
108 void ReusePictureBuffer(int64 picture_buffer_id, uint32 sync_point); 108 void ReusePictureBuffer(int64 picture_buffer_id,
109 scoped_ptr<gpu::MailboxHolder> mailbox_holder);
109 110
110 void RecordBufferData( 111 void RecordBufferData(
111 const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer); 112 const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer);
112 void GetBufferData(int32 id, base::TimeDelta* timetamp, 113 void GetBufferData(int32 id, base::TimeDelta* timetamp,
113 gfx::Rect* visible_rect, gfx::Size* natural_size); 114 gfx::Rect* visible_rect, gfx::Size* natural_size);
114 115
115 void DestroyVDA(); 116 void DestroyVDA();
116 117
117 // Request a shared-memory segment of at least |min_size| bytes. Will 118 // Request a shared-memory segment of at least |min_size| bytes. Will
118 // allocate as necessary. Caller does not own returned pointer. 119 // allocate as necessary. Caller does not own returned pointer.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // Set during ProvidePictureBuffers(), used for checking and implementing 187 // Set during ProvidePictureBuffers(), used for checking and implementing
187 // HasAvailableOutputFrames(). 188 // HasAvailableOutputFrames().
188 int available_pictures_; 189 int available_pictures_;
189 190
190 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 191 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
191 }; 192 };
192 193
193 } // namespace media 194 } // namespace media
194 195
195 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 196 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/base/video_frame_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698