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

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

Issue 12385073: Add interface implementations for WebVideoFrameImpl to give the exact video Format, textureId and t… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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 | « no previous file | webkit/media/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
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_
OLDNEW
« no previous file with comments | « no previous file | webkit/media/webvideoframe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698