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

Side by Side 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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/software_renderer.cc ('k') | cc/video_frame_draw_quad.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« 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