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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « webkit/glue/webmediaplayer_impl.cc ('k') | webkit/glue/webvideoframe_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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