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

Unified Diff: media/renderers/video_renderer_impl.h

Issue 1273943002: media: Make GpuMemoryBuffers VideoFrame copies asynchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reveman's and dalecurtis' comments. Disable GMB VideoFrames. Created 5 years, 4 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/renderers/default_renderer_factory.cc ('k') | media/renderers/video_renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/video_renderer_impl.h
diff --git a/media/renderers/video_renderer_impl.h b/media/renderers/video_renderer_impl.h
index 267473a2ad56c06e3b8fdf640ec90d6659d691ef..c2cacb1dbb087b80db15588cbf878406b955bf9c 100644
--- a/media/renderers/video_renderer_impl.h
+++ b/media/renderers/video_renderer_impl.h
@@ -52,7 +52,8 @@ class MEDIA_EXPORT VideoRendererImpl
//
// Setting |drop_frames_| to true causes the renderer to drop expired frames.
VideoRendererImpl(
- const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
+ const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
+ const scoped_refptr<base::TaskRunner>& worker_task_runner,
VideoRendererSink* sink,
ScopedVector<VideoDecoder> decoders,
bool drop_frames,
@@ -97,6 +98,13 @@ class MEDIA_EXPORT VideoRendererImpl
void OnVideoFrameStreamInitialized(bool success);
// Callback for |video_frame_stream_| to deliver decoded video frames and
+ // report video decoding status. If a frame is available the planes will be
+ // copied asynchronously and FrameReady will be called once finished copying.
+ void FrameReadyForCopyingToGpuMemoryBuffers(
+ VideoFrameStream::Status status,
+ const scoped_refptr<VideoFrame>& frame);
+
+ // Callback for |video_frame_stream_| to deliver decoded video frames and
// report video decoding status.
void FrameReady(VideoFrameStream::Status status,
const scoped_refptr<VideoFrame>& frame);
« no previous file with comments | « media/renderers/default_renderer_factory.cc ('k') | media/renderers/video_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698