Chromium Code Reviews| Index: cc/test/fake_video_frame.h |
| diff --git a/cc/test/fake_video_frame.h b/cc/test/fake_video_frame.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b52cf88d03c29de6f42d30e51f7a55de72af698e |
| --- /dev/null |
| +++ b/cc/test/fake_video_frame.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CC_TEST_FAKE_VIDEO_FRAME_H_ |
| +#define CC_TEST_FAKE_VIDEO_FRAME_H_ |
| + |
| +#include "media/base/video_frame.h" |
| +#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
|
| + |
| +namespace cc { |
| + |
| +class FakeVideoFrame : public WebKit::WebVideoFrame { |
| + public: |
| + explicit FakeVideoFrame(const scoped_refptr<media::VideoFrame>& frame); |
| + virtual ~FakeVideoFrame(); |
| + |
| + 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
|
| + virtual unsigned width() const; |
| + virtual unsigned height() const; |
| + virtual unsigned planes() const; |
| + virtual int stride(unsigned plane) const; |
| + virtual const void* data(unsigned plane) const; |
| + virtual unsigned textureId() const; |
| + virtual unsigned textureTarget() const; |
| + virtual WebKit::WebRect visibleRect() const; |
| + virtual WebKit::WebSize textureSize() const; |
| + |
| + static media::VideoFrame* ToVideoFrame( |
| + WebKit::WebVideoFrame* web_video_frame); |
| + |
| + private: |
| + scoped_refptr<media::VideoFrame> frame_; |
| +}; |
| + |
| +} // namespace cc |
| + |
| +#endif // CC_TEST_FAKE_VIDEO_FRAME_H_ |