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.
5 #ifndef CCSolidColorDrawQuad_h
6 #define CCSolidColorDrawQuad_h
8 #include "CCDrawQuad.h"
10 #include <wtf/PassOwnPtr.h>
16 class CCSolidColorDrawQuad
: public CCDrawQuad
{
18 static PassOwnPtr
<CCSolidColorDrawQuad
> create(const CCSharedQuadState
*, const IntRect
&, SkColor
);
20 SkColor
color() const { return m_color
; };
22 static const CCSolidColorDrawQuad
* materialCast(const CCDrawQuad
*);
24 CCSolidColorDrawQuad(const CCSharedQuadState
*, const IntRect
&, SkColor
);