| Index: samplecode/SampleTextOnPath.cpp
|
| diff --git a/samplecode/SampleTextOnPath.cpp b/samplecode/SampleTextOnPath.cpp
|
| index ac889c3dae24fa1f9a27b248740fd9870f493742..505c0d72b470b0c7ef72395b8f0fc420cae49c8f 100644
|
| --- a/samplecode/SampleTextOnPath.cpp
|
| +++ b/samplecode/SampleTextOnPath.cpp
|
| @@ -93,7 +93,8 @@ public:
|
| SkPath fPath;
|
| SkScalar fHOffset;
|
|
|
| - TextOnPathView() {
|
| +protected:
|
| + virtual void onceBeforeDraw() {
|
| SkRect r;
|
| r.set(SkIntToScalar(100), SkIntToScalar(100),
|
| SkIntToScalar(300), SkIntToScalar(300));
|
| @@ -103,7 +104,6 @@ public:
|
| fHOffset = SkIntToScalar(50);
|
| }
|
|
|
| -protected:
|
| // overrides from SkEventSink
|
| bool onQuery(SkEvent* evt) SK_OVERRIDE {
|
| if (SampleCode::TitleQ(*evt)) {
|
|
|