Chromium Code Reviews| Index: webkit/media/webvideoframe_impl.h |
| diff --git a/webkit/media/webvideoframe_impl.h b/webkit/media/webvideoframe_impl.h |
| index b2eed0c4edcfc4d91c8202a9e23fcdfed08d2874..47395e11d5b85a398c601923451999ddf86e20c8 100644 |
| --- a/webkit/media/webvideoframe_impl.h |
| +++ b/webkit/media/webvideoframe_impl.h |
| @@ -7,44 +7,21 @@ |
| #include "base/compiler_specific.h" |
| #include "media/base/video_frame.h" |
|
sheu
2013/01/03 22:00:27
You could just drop the header now and forward-dec
danakj
2013/01/03 22:44:54
Done.
|
| -#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 { |
| class WebVideoFrameImpl : public WebKit::WebVideoFrame { |
|
Ami GONE FROM CHROMIUM
2013/01/03 21:59:07
AFAICT at this point this class serves the sole pu
danakj
2013/01/03 22:44:54
Yep, as you said: https://bugs.webkit.org/show_bug
Ami GONE FROM CHROMIUM
2013/01/03 22:49:32
I take it you tested this (gutting WVF) and it wor
danakj
2013/01/03 22:53:57
I tested with:
- youtube html5 video
- html5doctor
|
| public: |
| - // This converts a WebKit::WebVideoFrame to a media::VideoFrame. |
| - static media::VideoFrame* toVideoFrame( |
| - WebKit::WebVideoFrame* web_video_frame); |
| - |
| WebVideoFrameImpl(scoped_refptr<media::VideoFrame> video_frame); |
| virtual ~WebVideoFrameImpl(); |
| - virtual WebVideoFrame::Format format() const; |
| - virtual unsigned planes() 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; |
| + |
| + scoped_refptr<media::VideoFrame> video_frame; |
| private: |
| - scoped_refptr<media::VideoFrame> video_frame_; |
| DISALLOW_COPY_AND_ASSIGN(WebVideoFrameImpl); |
| }; |
| -// TODO(skaslev) This is temporarily inline pending the removal of |
| -// WebKit::WebVideoFrame and WebVideoFrameImpl which are currently unused. |
| -inline media::VideoFrame* WebVideoFrameImpl::toVideoFrame( |
| - WebKit::WebVideoFrame* web_video_frame) { |
| - WebVideoFrameImpl* wrapped_frame = |
| - static_cast<WebVideoFrameImpl*>(web_video_frame); |
| - if (wrapped_frame) |
| - return wrapped_frame->video_frame_.get(); |
| - return NULL; |
| -} |
| - |
| } // namespace webkit_media |
| #endif // WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_ |