summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/graphics/chromium/cc/CCSolidColorDrawQuad.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/chromium/cc/CCSolidColorDrawQuad.h')
-rw-r--r--Source/WebCore/platform/graphics/chromium/cc/CCSolidColorDrawQuad.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/chromium/cc/CCSolidColorDrawQuad.h b/Source/WebCore/platform/graphics/chromium/cc/CCSolidColorDrawQuad.h
index b6c0ee025..59bc8fea1 100644
--- a/Source/WebCore/platform/graphics/chromium/cc/CCSolidColorDrawQuad.h
+++ b/Source/WebCore/platform/graphics/chromium/cc/CCSolidColorDrawQuad.h
@@ -26,10 +26,30 @@
#ifndef CCSolidColorDrawQuad_h
#define CCSolidColorDrawQuad_h
-#include <public/WebCompositorSolidColorQuad.h>
+#include "SkColor.h"
+#include "cc/CCDrawQuad.h"
+
+#include <wtf/PassOwnPtr.h>
namespace WebCore {
-typedef WebKit::WebCompositorSolidColorQuad CCSolidColorDrawQuad;
+
+#pragma pack(push, 4)
+
+class CCSolidColorDrawQuad : public CCDrawQuad {
+public:
+ static PassOwnPtr<CCSolidColorDrawQuad> create(const CCSharedQuadState*, const IntRect&, SkColor);
+
+ SkColor color() const { return m_color; };
+
+ static const CCSolidColorDrawQuad* materialCast(const CCDrawQuad*);
+private:
+ CCSolidColorDrawQuad(const CCSharedQuadState*, const IntRect&, SkColor);
+
+ SkColor m_color;
+};
+
+#pragma pack(pop)
+
}
#endif