Index: webkit/glue/webvideoframe_impl.h |
diff --git a/webkit/glue/webvideoframe_impl.h b/webkit/glue/webvideoframe_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8cf4671430eb6fbaa70e2b970ef6bef84bd8b5b6 |
--- /dev/null |
+++ b/webkit/glue/webvideoframe_impl.h |
@@ -0,0 +1,37 @@ |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WEBKIT_GLUE_WEBVIDEOFRAME_IMPL_H_ |
+#define WEBKIT_GLUE_WEBVIDEOFRAME_IMPL_H_ |
+ |
+#include "media/base/video_frame.h" |
+#include "third_party/WebKit/WebKit/chromium/public/WebVideoFrame.h" |
+ |
+namespace webkit_glue { |
+ |
+class WebVideoRenderer; |
+class WebVideoRendererFactoryFactory; |
+ |
+class WebVideoFrameImpl : public WebKit::WebVideoFrame { |
+ public: |
+ WebVideoFrameImpl(media::VideoFrame* frame); |
+ |
+ static media::VideoFrame* toVideoFrame(WebKit::WebVideoFrame* frame); |
+ |
+ virtual SurfaceType type() const; |
+ virtual Format format() const; |
+ virtual size_t width() const; |
+ virtual size_t height() const; |
+ virtual size_t planes() const; |
+ virtual int stride(size_t plane) const; |
+ virtual void* data(size_t plane) const; |
+ |
+ private: |
+ media::VideoFrame* frame_; |
+ DISALLOW_COPY_AND_ASSIGN(WebVideoFrameImpl); |
+}; |
+ |
+} // namespace webkit_glue |
+ |
+#endif // WEBKIT_GLUE_WEBVIDEOFRAME_IMPL_H_ |