blob: 07da123284c0d8997afafa3d6b49f5d323bf8b58 [file] [log] [blame]
reed@android.com8a1c16f2008-12-17 15:59:43 +00001#include "SkBGViewArtist.h"
2#include "SkCanvas.h"
3#include "SkParsePaint.h"
4
5SkBGViewArtist::SkBGViewArtist(SkColor c)
6{
7 fPaint.setColor(c);
8}
9
10SkBGViewArtist::~SkBGViewArtist()
11{
12}
13
14void SkBGViewArtist::onDraw(SkView*, SkCanvas* canvas)
15{
16 // only works for views that are clipped their bounds.
17 canvas->drawPaint(fPaint);
18}
19
20void SkBGViewArtist::onInflate(const SkDOM& dom, const SkDOM::Node* node)
21{
22 SkPaint_Inflate(&fPaint, dom, node);
23}
24