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

Unified Diff: media/filters/gpu_video_accelerator_factories.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: previous patchset has unrelated code by mistake. 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 side-by-side diff with in-line comments
Download patch
Index: media/filters/gpu_video_accelerator_factories.h
diff --git a/media/filters/gpu_video_accelerator_factories.h b/media/filters/gpu_video_accelerator_factories.h
index 18daa30e997c604eff28b136de7a7ebbbda53008..4d0acd81baa75bb38d6463442336f73e3bb1c34f 100644
--- a/media/filters/gpu_video_accelerator_factories.h
+++ b/media/filters/gpu_video_accelerator_factories.h
@@ -11,6 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "gpu/command_buffer/common/mailbox.h"
#include "media/base/video_decoder_config.h"
+#include "media/base/video_frame.h"
namespace base {
class SingleThreadTaskRunner;
@@ -56,10 +57,10 @@ class MEDIA_EXPORT GpuVideoAcceleratorFactories
virtual void WaitSyncPoint(uint32 sync_point) = 0;
- // Read pixels within |visible_rect| boundaries from a native texture and
+ // Read pixels within |video_frame| boundaries from a native texture and
// store into |pixels| as RGBA.
virtual void ReadPixels(uint32 texture_id,
- const gfx::Rect& visible_rect,
+ const scoped_refptr<VideoFrame>& video_frame,
const SkBitmap& pixels) = 0;
// Allocate & return a shared memory segment. Caller is responsible for

Powered by Google App Engine
This is Rietveld 408576698