Chromium Code Reviews| 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_VIDEO_FRAME_DRAW_QUAD_H | |
| 6 #define CC_VIDEO_FRAME_DRAW_QUAD_H | |
| 7 | |
| 8 #include "base/memory/ref_counted.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "cc/draw_quad.h" | |
| 11 | |
| 12 namespace media { | |
| 13 class VideoFrame; | |
| 14 } | |
| 15 | |
| 16 namespace cc { | |
| 17 | |
| 18 class VideoFrameDrawQuad : public DrawQuad { | |
|
danakj
2012/10/24 18:01:07
Any chance of reusing the YUVVideoDrawQuad?
| |
| 19 public: | |
| 20 static scoped_ptr<VideoFrameDrawQuad> create(const SharedQuadState*, const gfx ::Rect&, media::VideoFrame* frame); | |
| 21 | |
| 22 media::VideoFrame* frame() const { return frame_; } | |
|
danakj
2012/10/24 18:01:07
No pointers in quads please. These need to be seri
| |
| 23 | |
| 24 static const VideoFrameDrawQuad* materialCast(const DrawQuad*); | |
| 25 | |
| 26 private: | |
| 27 VideoFrameDrawQuad(const SharedQuadState*, const gfx::Rect&, media::VideoFrame * frame); | |
| 28 | |
| 29 scoped_refptr<media::VideoFrame> frame_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(VideoFrameDrawQuad); | |
| 32 }; | |
| 33 | |
| 34 } // namespace cc | |
| 35 | |
| 36 #endif // CC_VIDEO_FRAME_DRAW_QUAD_H | |
| OLD | NEW |