diff options
Diffstat (limited to 'gm/pathfill.cpp')
-rw-r--r-- | gm/pathfill.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gm/pathfill.cpp b/gm/pathfill.cpp index 6b37c6693a..461a4f5fc8 100644 --- a/gm/pathfill.cpp +++ b/gm/pathfill.cpp @@ -117,14 +117,13 @@ static const MakePathProc gProcs[] = { class PathFillGM : public skiagm::GM { SkPath fPath[N]; SkScalar fDY[N]; -public: - PathFillGM() { +protected: + void onOnceBeforeDraw() SK_OVERRIDE { for (size_t i = 0; i < N; i++) { fDY[i] = gProcs[i](&fPath[i]); } } -protected: SkString onShortName() SK_OVERRIDE { return SkString("pathfill"); @@ -152,15 +151,13 @@ private: class PathInverseFillGM : public skiagm::GM { SkPath fPath[N]; SkScalar fDY[N]; -public: - PathInverseFillGM() { +protected: + void onOnceBeforeDraw() SK_OVERRIDE { for (size_t i = 0; i < N; i++) { fDY[i] = gProcs[i](&fPath[i]); } } -protected: - SkString onShortName() SK_OVERRIDE { return SkString("pathinvfill"); } |