diff options
author | 2013-10-17 16:29:21 +0000 | |
---|---|---|
committer | 2013-10-17 16:29:21 +0000 | |
commit | 521a46750d87d3d206617d05d917ad6aad242ca4 (patch) | |
tree | 772cb406835c8fe36895c0c13624b51a43904a8b /experimental/SimpleCocoaApp | |
parent | 627f66283b16dab30b31b381e35795104b70a56b (diff) |
If the path is a rect, call drawRect to raster the geometry in SkCanvas::drawPath to get better performance.
R=bsalomon@google.com, robertphillips@google.com, reed@google.com
Author: yunchao.he@intel.com
Review URL: https://codereview.chromium.org/23484007
git-svn-id: http://skia.googlecode.com/svn/trunk@11842 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/SimpleCocoaApp')
-rw-r--r-- | experimental/SimpleCocoaApp/SimpleApp.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/experimental/SimpleCocoaApp/SimpleApp.mm b/experimental/SimpleCocoaApp/SimpleApp.mm index 7dac2a4fff..2156209798 100644 --- a/experimental/SimpleCocoaApp/SimpleApp.mm +++ b/experimental/SimpleCocoaApp/SimpleApp.mm @@ -135,7 +135,7 @@ static int showPathContour(SkPath::Iter& iter) { } class PathCanvas : public SkCanvas { - virtual void drawPath(const SkPath& path, const SkPaint& paint) { + virtual void onDrawPath(const SkPath& path, const SkPaint& paint) { if (nameonly) { SkDebugf(" %s%d,\n", filename.c_str(), ++count); return; |