blob: 7e58d32b1146240352138f4a0250c7b7d982a47d [file] [log] [blame]
scroggob7e9aee2011-03-15 15:15:15 +00001#include "SkCanvas.h"
2#include "SkColor.h"
3#include "SampleCode.h"
4#include "SkView.h"
5
6class DrawBlue : public SkView {
7
8public:
9 DrawBlue() {}
10protected:
11 virtual void onDraw(SkCanvas* canvas) {
12 canvas->drawColor(SK_ColorBLUE);
13 }
14};
15
16static SkView* MyFactory() { return new DrawBlue; }
17static SkViewRegister reg(MyFactory);