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

Unified Diff: webkit/glue/webvideoframe_impl.h

Issue 3058055: Implemented way to share video frames between WebKit and Chromium (Closed)
Patch Set: Adding WebKit side for easy reading (will delete in final patch) Created 10 years, 4 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
« no previous file with comments | « webkit/glue/webmediaplayer_impl.cc ('k') | webkit/glue/webvideoframe_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « webkit/glue/webmediaplayer_impl.cc ('k') | webkit/glue/webvideoframe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698