OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_ | 5 #ifndef WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_ |
6 #define WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_ | 6 #define WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebVideoFrame.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebVideoFrame.h" |
11 | 11 |
12 namespace media { | 12 namespace media { |
13 class VideoFrame; | 13 class VideoFrame; |
14 } | 14 } |
15 | 15 |
16 namespace webkit_media { | 16 namespace webkit_media { |
17 | 17 |
18 class WebVideoFrameImpl : public WebKit::WebVideoFrame { | 18 class WebVideoFrameImpl : public WebKit::WebVideoFrame { |
19 public: | 19 public: |
20 WebVideoFrameImpl(scoped_refptr<media::VideoFrame> video_frame); | 20 WebVideoFrameImpl(scoped_refptr<media::VideoFrame> video_frame); |
21 virtual ~WebVideoFrameImpl(); | 21 virtual ~WebVideoFrameImpl(); |
22 | 22 virtual WebKit::WebVideoFrame::Format format() const; |
danakj
2013/03/04 15:57:50
Why can't you use the video_frame directly? This c
Ken Russell (switch to Gerrit)
2013/03/05 00:48:39
Is your suggestion to instead pass the WebVideoFra
| |
23 virtual unsigned textureId() const; | |
24 virtual unsigned textureTarget() const; | |
23 scoped_refptr<media::VideoFrame> video_frame; | 25 scoped_refptr<media::VideoFrame> video_frame; |
24 | 26 |
25 private: | 27 private: |
26 DISALLOW_COPY_AND_ASSIGN(WebVideoFrameImpl); | 28 DISALLOW_COPY_AND_ASSIGN(WebVideoFrameImpl); |
27 }; | 29 }; |
28 | 30 |
29 } // namespace webkit_media | 31 } // namespace webkit_media |
30 | 32 |
31 #endif // WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_ | 33 #endif // WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_ |
OLD | NEW |