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

Unified Diff: media/filters/gpu_video_decoder.h

Issue 14199002: Send hardware video frames with mailboxes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: video-mailbox: virtualandroid Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/video_frame_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/gpu_video_decoder.h
diff --git a/media/filters/gpu_video_decoder.h b/media/filters/gpu_video_decoder.h
index 40311a97b791cdd4f1ed4e9042a5bd59000e6d53..6fd0a3a838a1c0f7570a20637bf4e59242975fee 100644
--- a/media/filters/gpu_video_decoder.h
+++ b/media/filters/gpu_video_decoder.h
@@ -47,11 +47,14 @@ class MEDIA_EXPORT GpuVideoDecoder
VideoCodecProfile, VideoDecodeAccelerator::Client*) = 0;
// Allocate & delete native textures.
- virtual bool CreateTextures(int32 count, const gfx::Size& size,
- std::vector<uint32>* texture_ids,
- uint32 texture_target) = 0;
+ virtual uint32 CreateTextures(int32 count, const gfx::Size& size,
+ std::vector<uint32>* texture_ids,
+ std::vector<gpu::Mailbox>* texture_mailboxes,
+ uint32 texture_target) = 0;
virtual void DeleteTexture(uint32 texture_id) = 0;
+ virtual void WaitSyncPoint(uint32 sync_point) = 0;
+
// Read pixels from a native texture and store into |pixels| as RGBA.
virtual void ReadPixels(uint32 texture_id, uint32 texture_target,
const gfx::Size& size, const SkBitmap& pixels) = 0;
@@ -132,7 +135,7 @@ class MEDIA_EXPORT GpuVideoDecoder
const scoped_refptr<VideoFrame>& frame);
// Indicate the picture buffer can be reused by the decoder.
- void ReusePictureBuffer(int64 picture_buffer_id);
+ void ReusePictureBuffer(int64 picture_buffer_id, uint32 sync_point);
void RecordBufferData(
const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer);
« 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