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

Side by Side Diff: cc/video_frame_draw_quad.cc

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
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 #include "config.h"
6
7 #include "cc/video_frame_draw_quad.h"
8
9 #include "base/logging.h"
10 #include "media/base/video_frame.h"
11
12 namespace cc {
13
14 scoped_ptr<VideoFrameDrawQuad> VideoFrameDrawQuad::create(
15 const SharedQuadState* shared_quad_state,
16 const gfx::Rect& quad_rect,
17 media::VideoFrame* frame) {
18 return make_scoped_ptr(new VideoFrameDrawQuad(shared_quad_state, quad_rect, fr ame));
19 }
20
21 VideoFrameDrawQuad::VideoFrameDrawQuad(
22 const SharedQuadState* shared_quad_state,
23 const gfx::Rect& quad_rect,
24 media::VideoFrame* frame)
25 : DrawQuad(shared_quad_state, DrawQuad::VideoFrameContent, quad_rect)
26 , frame_(frame) {
27 }
28
29 const VideoFrameDrawQuad* VideoFrameDrawQuad::materialCast(const DrawQuad* quad) {
30 DCHECK(quad->material() == DrawQuad::VideoFrameContent);
31 return static_cast<const VideoFrameDrawQuad*>(quad);
32 }
33
34 } // namespace cc
OLDNEW
« cc/video_frame_draw_quad.h ('K') | « cc/video_frame_draw_quad.h ('k') | cc/video_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698