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

Side by Side Diff: cc/yuv_video_draw_quad.cc

Issue 11417035: cc: Switch the DrawQuad enum names to chromium style and remove pragmas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/tiled_layer_impl_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/yuv_video_draw_quad.h" 5 #include "cc/yuv_video_draw_quad.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
(...skipping 10 matching lines...) Expand all
21 yPlane, uPlane, vPlane)); 21 yPlane, uPlane, vPlane));
22 } 22 }
23 23
24 YUVVideoDrawQuad::YUVVideoDrawQuad( 24 YUVVideoDrawQuad::YUVVideoDrawQuad(
25 const SharedQuadState* sharedQuadState, 25 const SharedQuadState* sharedQuadState,
26 const gfx::Rect& quadRect, 26 const gfx::Rect& quadRect,
27 const gfx::SizeF& texScale, 27 const gfx::SizeF& texScale,
28 const VideoLayerImpl::FramePlane& yPlane, 28 const VideoLayerImpl::FramePlane& yPlane,
29 const VideoLayerImpl::FramePlane& uPlane, 29 const VideoLayerImpl::FramePlane& uPlane,
30 const VideoLayerImpl::FramePlane& vPlane) 30 const VideoLayerImpl::FramePlane& vPlane)
31 : DrawQuad(sharedQuadState, DrawQuad::YUVVideoContent, quadRect) 31 : DrawQuad(sharedQuadState, DrawQuad::YUV_VIDEO_CONTENT, quadRect)
32 , m_texScale(texScale) 32 , m_texScale(texScale)
33 , m_yPlane(yPlane) 33 , m_yPlane(yPlane)
34 , m_uPlane(uPlane) 34 , m_uPlane(uPlane)
35 , m_vPlane(vPlane) 35 , m_vPlane(vPlane)
36 { 36 {
37 } 37 }
38 38
39 YUVVideoDrawQuad::~YUVVideoDrawQuad() 39 YUVVideoDrawQuad::~YUVVideoDrawQuad()
40 { 40 {
41 } 41 }
42 42
43 const YUVVideoDrawQuad* YUVVideoDrawQuad::materialCast(const DrawQuad* quad) 43 const YUVVideoDrawQuad* YUVVideoDrawQuad::materialCast(const DrawQuad* quad)
44 { 44 {
45 DCHECK(quad->material() == DrawQuad::YUVVideoContent); 45 DCHECK(quad->material() == DrawQuad::YUV_VIDEO_CONTENT);
46 return static_cast<const YUVVideoDrawQuad*>(quad); 46 return static_cast<const YUVVideoDrawQuad*>(quad);
47 } 47 }
48 48
49 } // namespace cc 49 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiled_layer_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698