Index: samplecode/SampleTextOnPath.cpp |
diff --git a/samplecode/SampleTextOnPath.cpp b/samplecode/SampleTextOnPath.cpp |
index ac889c3dae24fa1f9a27b248740fd9870f493742..95ae5480161d51e4cce7619bf56e46a1fd0fbb6d 100644 |
--- a/samplecode/SampleTextOnPath.cpp |
+++ b/samplecode/SampleTextOnPath.cpp |
@@ -93,7 +93,8 @@ public: |
SkPath fPath; |
SkScalar fHOffset; |
- TextOnPathView() { |
+protected: |
+ void onOnceBeforeDraw() SK_OVERRIDE { |
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)) { |