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

Unified Diff: webkit/media/webvideoframe_impl.h

Issue 11269017: Plumb through cropped output size for VideoFrame (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Created 8 years, 2 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: webkit/media/webvideoframe_impl.h
diff --git a/webkit/media/webvideoframe_impl.h b/webkit/media/webvideoframe_impl.h
index 2f0103742557a028ec9a03ca30fd0ab75df8278d..037dfd1d4b77842b02599936244a6dbd6f9f1250 100644
--- a/webkit/media/webvideoframe_impl.h
+++ b/webkit/media/webvideoframe_impl.h
@@ -20,13 +20,16 @@ class WebVideoFrameImpl : public WebKit::WebVideoFrame {
WebVideoFrameImpl(scoped_refptr<media::VideoFrame> video_frame);
virtual ~WebVideoFrameImpl();
virtual WebVideoFrame::Format format() const;
- virtual unsigned width() const;
- virtual unsigned height() const;
virtual unsigned planes() const;
- virtual int stride(unsigned plane) const;
virtual const void* data(unsigned plane) const;
virtual unsigned textureId() const;
virtual unsigned textureTarget() const;
+ virtual unsigned visibleX() const;
+ virtual unsigned visibleY() const;
+ virtual unsigned visibleWidth() const;
+ virtual unsigned visibleHeight() const;
+ virtual unsigned textureWidth() const;
+ virtual unsigned textureHeight() const;
private:
scoped_refptr<media::VideoFrame> video_frame_;

Powered by Google App Engine
This is Rietveld 408576698