diff options
author | caryclark <caryclark@google.com> | 2015-02-18 10:56:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-18 10:56:00 -0800 |
commit | 88c748aeea1cedfc8280d7f3da3d949ed01be177 (patch) | |
tree | 88ee89ba4bb770e5740f93efc001696ba516f230 /gm/pathfill.cpp | |
parent | 94886482ffe10e17c62cfd274de1c4f4a7393384 (diff) |
update sampleapp for stroking experiment
Add RotateCircles3 back as better-named QuadStroker.
Switch pathfill test to call skia before draw instead of in
initializer to avoid triggering debugging breakpoints.
Review URL: https://codereview.chromium.org/912273003
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"); } |