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

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: Found the windows failure, and fixed it. Thanks akalin@ Created 8 years, 1 month 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 | « webkit/media/simple_video_frame_provider.cc ('k') | webkit/media/webvideoframe_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/webvideoframe_impl.h
diff --git a/webkit/media/webvideoframe_impl.h b/webkit/media/webvideoframe_impl.h
index 5125112b86133e6effd5fff37ba058806a7d709d..b2eed0c4edcfc4d91c8202a9e23fcdfed08d2874 100644
--- a/webkit/media/webvideoframe_impl.h
+++ b/webkit/media/webvideoframe_impl.h
@@ -7,6 +7,8 @@
#include "base/compiler_specific.h"
#include "media/base/video_frame.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebVideoFrame.h"
namespace webkit_media {
@@ -20,13 +22,12 @@ 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 WebKit::WebRect visibleRect() const;
+ virtual WebKit::WebSize textureSize() const;
private:
scoped_refptr<media::VideoFrame> video_frame_;
« no previous file with comments | « webkit/media/simple_video_frame_provider.cc ('k') | webkit/media/webvideoframe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698