OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEBKIT_GLUE_WEBVIDEOFRAME_IMPL_H_ |
| 6 #define WEBKIT_GLUE_WEBVIDEOFRAME_IMPL_H_ |
| 7 |
| 8 #include "media/base/video_frame.h" |
| 9 #include "third_party/WebKit/WebKit/chromium/public/WebVideoFrame.h" |
| 10 |
| 11 namespace webkit_glue { |
| 12 |
| 13 class WebVideoRenderer; |
| 14 class WebVideoRendererFactoryFactory; |
| 15 |
| 16 class WebVideoFrameImpl : public WebKit::WebVideoFrame { |
| 17 public: |
| 18 WebVideoFrameImpl(media::VideoFrame* frame); |
| 19 |
| 20 static media::VideoFrame* toVideoFrame(WebKit::WebVideoFrame* frame); |
| 21 |
| 22 virtual SurfaceType type() const; |
| 23 virtual Format format() const; |
| 24 virtual size_t width() const; |
| 25 virtual size_t height() const; |
| 26 virtual size_t planes() const; |
| 27 virtual int stride(size_t plane) const; |
| 28 virtual void* data(size_t plane) const; |
| 29 |
| 30 private: |
| 31 media::VideoFrame* frame_; |
| 32 DISALLOW_COPY_AND_ASSIGN(WebVideoFrameImpl); |
| 33 }; |
| 34 |
| 35 } // namespace webkit_glue |
| 36 |
| 37 #endif // WEBKIT_GLUE_WEBVIDEOFRAME_IMPL_H_ |
OLD | NEW |