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

Unified Diff: cc/video_frame_draw_quad.h

Issue 11274017: Added support for YUV videos to the software compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cosmetics. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/software_renderer.cc ('k') | cc/video_frame_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/software_renderer.cc ('k') | cc/video_frame_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698