don't draw in constructor (makes debugging harder)
git-svn-id: http://skia.googlecode.com/svn/trunk@3369 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
7b1859034f
commit
c9fa63c869
@ -87,8 +87,18 @@ public:
|
||||
int fDStroke, fStroke, fMinStroke, fMaxStroke;
|
||||
SkPath fPath[6];
|
||||
bool fShowHairline;
|
||||
bool fOnce;
|
||||
|
||||
PathView() {
|
||||
fOnce = false;
|
||||
}
|
||||
|
||||
void init() {
|
||||
if (fOnce) {
|
||||
return;
|
||||
}
|
||||
fOnce = true;
|
||||
|
||||
test_cubic();
|
||||
test_cubic2();
|
||||
|
||||
@ -168,6 +178,7 @@ protected:
|
||||
}
|
||||
|
||||
virtual void onDrawContent(SkCanvas* canvas) {
|
||||
this->init();
|
||||
canvas->translate(SkIntToScalar(50), SkIntToScalar(50));
|
||||
|
||||
static const SkPaint::Join gJoins[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user