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

Side by Side Diff: webkit/glue/webvideoframe_impl.h

Issue 8570010: Moving media-related files from webkit/glue/ to webkit/media/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: minor fixes Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webmediaplayer_proxy.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) 2011 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 "base/compiler_specific.h"
9 #include "media/base/video_frame.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVideoFrame.h"
11
12 namespace webkit_glue {
13
14 class WebVideoFrameImpl : public WebKit::WebVideoFrame {
15 public:
16 // This converts a WebKit::WebVideoFrame to a media::VideoFrame.
17 static media::VideoFrame* toVideoFrame(
18 WebKit::WebVideoFrame* web_video_frame);
19
20 WebVideoFrameImpl(scoped_refptr<media::VideoFrame> video_frame);
21 virtual ~WebVideoFrameImpl();
22 virtual WebVideoFrame::Format format() const OVERRIDE;
23 virtual unsigned width() const OVERRIDE;
24 virtual unsigned height() const OVERRIDE;
25 virtual unsigned planes() const OVERRIDE;
26 virtual int stride(unsigned plane) const OVERRIDE;
27 virtual const void* data(unsigned plane) const OVERRIDE;
28
29 private:
30 scoped_refptr<media::VideoFrame> video_frame_;
31 DISALLOW_COPY_AND_ASSIGN(WebVideoFrameImpl);
32 };
33
34 } // namespace webkit_glue
35
36 #endif // WEBKIT_GLUE_WEBVIDEOFRAME_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webmediaplayer_proxy.cc ('k') | webkit/glue/webvideoframe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698