Index: cc/video_frame_draw_quad.h |
diff --git a/cc/video_frame_draw_quad.h b/cc/video_frame_draw_quad.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bdbe05c0eb2f830dae6fb1f5284bf82a05877d55 |
--- /dev/null |
+++ b/cc/video_frame_draw_quad.h |
@@ -0,0 +1,36 @@ |
+// 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_VIDEO_FRAME_DRAW_QUAD_H |
+#define CC_VIDEO_FRAME_DRAW_QUAD_H |
+ |
+#include "base/memory/ref_counted.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "cc/draw_quad.h" |
+ |
+namespace media { |
+class VideoFrame; |
+} |
+ |
+namespace cc { |
+ |
+class VideoFrameDrawQuad : public DrawQuad { |
danakj
2012/10/24 18:01:07
Any chance of reusing the YUVVideoDrawQuad?
|
+ public: |
+ static scoped_ptr<VideoFrameDrawQuad> create(const SharedQuadState*, const gfx::Rect&, media::VideoFrame* frame); |
+ |
+ media::VideoFrame* frame() const { return frame_; } |
danakj
2012/10/24 18:01:07
No pointers in quads please. These need to be seri
|
+ |
+ static const VideoFrameDrawQuad* materialCast(const DrawQuad*); |
+ |
+private: |
+ VideoFrameDrawQuad(const SharedQuadState*, const gfx::Rect&, media::VideoFrame* frame); |
+ |
+ scoped_refptr<media::VideoFrame> frame_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(VideoFrameDrawQuad); |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_VIDEO_FRAME_DRAW_QUAD_H |