Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Unified Diff: gm/pathfill.cpp

Issue 912273003: update sampleapp for stroking experiment (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix another number truncation error Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gyp/SampleApp.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/pathfill.cpp
diff --git a/gm/pathfill.cpp b/gm/pathfill.cpp
index 6b37c6693a94032992c48b6aad7667d9f29ff8e0..461a4f5fc82d69652cf2f2488e736bd925160762 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");
}
« no previous file with comments | « no previous file | gyp/SampleApp.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698