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

Side by Side Diff: content/renderer/media/rtc_video_decoder.h

Issue 175223003: HW Video: Make media::VideoFrame handle the sync point of the compositor as well as webgl (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Make GpuVideoAcceleratorFactories::ReadPixels() receive mailbox, instead of texture Created 6 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 uint32_t timestamp, 147 uint32_t timestamp,
148 uint32_t width, 148 uint32_t width,
149 uint32_t height, 149 uint32_t height,
150 size_t size); 150 size_t size);
151 151
152 // Resets VDA. 152 // Resets VDA.
153 void ResetInternal(); 153 void ResetInternal();
154 154
155 // Tells VDA that a picture buffer can be recycled. 155 // Tells VDA that a picture buffer can be recycled.
156 void ReusePictureBuffer(int64 picture_buffer_id, 156 void ReusePictureBuffer(int64 picture_buffer_id,
157 scoped_ptr<gpu::MailboxHolder> mailbox_holder); 157 scoped_ptr<gpu::MailboxHolder> mailbox_holder,
158 const std::vector<uint32>& release_sync_points);
158 159
159 // Create |vda_| on |vda_loop_proxy_|. 160 // Create |vda_| on |vda_loop_proxy_|.
160 void CreateVDA(media::VideoCodecProfile profile, base::WaitableEvent* waiter); 161 void CreateVDA(media::VideoCodecProfile profile, base::WaitableEvent* waiter);
161 162
162 void DestroyTextures(); 163 void DestroyTextures();
163 void DestroyVDA(); 164 void DestroyVDA();
164 165
165 // Gets a shared-memory segment of at least |min_size| bytes from 166 // Gets a shared-memory segment of at least |min_size| bytes from
166 // |available_shm_segments_|. Returns NULL if there is no buffer or the 167 // |available_shm_segments_|. Returns NULL if there is no buffer or the
167 // buffer is not big enough. 168 // buffer is not big enough.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 // Factory used to populate |weak_this_|. Must be destroyed, or invalidated, 273 // Factory used to populate |weak_this_|. Must be destroyed, or invalidated,
273 // on |vda_loop_proxy_|. 274 // on |vda_loop_proxy_|.
274 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_; 275 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_;
275 276
276 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); 277 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder);
277 }; 278 };
278 279
279 } // namespace content 280 } // namespace content
280 281
281 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ 282 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698