OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2012 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 CC_TEST_FAKE_VIDEO_FRAME_H_ | |
6 #define CC_TEST_FAKE_VIDEO_FRAME_H_ | |
7 | |
8 #include "media/base/video_frame.h" | |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVideoFrame.h" | |
enne (OOO)
2013/01/02 20:30:39
Hmmmmmm. Because of this include, should fake vid
danakj
2013/01/02 20:45:00
There was some migration path for getting rid of W
| |
10 | |
11 namespace cc { | |
12 | |
13 class FakeVideoFrame : public WebKit::WebVideoFrame { | |
14 public: | |
15 explicit FakeVideoFrame(const scoped_refptr<media::VideoFrame>& frame); | |
16 virtual ~FakeVideoFrame(); | |
17 | |
18 virtual Format format() const; | |
enne (OOO)
2013/01/02 20:30:39
OVERRIDE? Also, maybe add a // WebVideoFrame inter
danakj
2013/01/02 20:45:00
Comment added. OVERRIDE across the WebKit boundary
| |
19 virtual unsigned width() const; | |
20 virtual unsigned height() const; | |
21 virtual unsigned planes() const; | |
22 virtual int stride(unsigned plane) const; | |
23 virtual const void* data(unsigned plane) const; | |
24 virtual unsigned textureId() const; | |
25 virtual unsigned textureTarget() const; | |
26 virtual WebKit::WebRect visibleRect() const; | |
27 virtual WebKit::WebSize textureSize() const; | |
28 | |
29 static media::VideoFrame* ToVideoFrame( | |
30 WebKit::WebVideoFrame* web_video_frame); | |
31 | |
32 private: | |
33 scoped_refptr<media::VideoFrame> frame_; | |
34 }; | |
35 | |
36 } // namespace cc | |
37 | |
38 #endif // CC_TEST_FAKE_VIDEO_FRAME_H_ | |
OLD | NEW |