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

Unified Diff: gm/dashcubics.cpp

Issue 166583002: Factory methods for heap-allocated SkPathEffect and SkXfermode objects. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update experimental/PdfViewer Created 6 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 | « experimental/PdfViewer/SkPdfGraphicsState.cpp ('k') | gm/dashing.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/dashcubics.cpp
diff --git a/gm/dashcubics.cpp b/gm/dashcubics.cpp
index 5d874d4dc64482c06b5c6ca268958b32b7cabcb1..f99c0c34f4544975a0649a544a58adef7f1ea6c2 100644
--- a/gm/dashcubics.cpp
+++ b/gm/dashcubics.cpp
@@ -43,7 +43,7 @@ protected:
SkParsePath::FromSVGString(d, &path);
SkScalar intervals[] = { 5, 10 };
- SkPathEffect* pe = new SkDashPathEffect(intervals, 2, 0);
+ SkPathEffect* pe = SkDashPathEffect::Create(intervals, 2, 0);
SkPaint paint;
paint.setAntiAlias(true);
« no previous file with comments | « experimental/PdfViewer/SkPdfGraphicsState.cpp ('k') | gm/dashing.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698