diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-22 16:54:15 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-22 16:54:15 +0000 |
commit | 7ce564cccb246ec56427085872b2e1458fe74bd1 (patch) | |
tree | 0018fffb8bb19b9cbee7b12cbf802f746aaf0bbd /include/utils/SkLuaCanvas.h | |
parent | c294a97842d6d24b220e7512a8043b93554ed40e (diff) |
Revert "If the path is a rect, call drawRect to raster the geometry in SkCanvas::drawPath to get better performance."
This reverts commit r11904
Review URL: https://codereview.chromium.org/35543002
git-svn-id: http://skia.googlecode.com/svn/trunk@11909 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/utils/SkLuaCanvas.h')
-rw-r--r-- | include/utils/SkLuaCanvas.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/utils/SkLuaCanvas.h b/include/utils/SkLuaCanvas.h index b604d3c92c..c34d134423 100644 --- a/include/utils/SkLuaCanvas.h +++ b/include/utils/SkLuaCanvas.h @@ -42,7 +42,9 @@ public: virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint) SK_OVERRIDE; virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; + virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; + virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, const SkPaint* paint) SK_OVERRIDE; virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, @@ -70,10 +72,6 @@ public: const SkPaint& paint) SK_OVERRIDE; virtual void drawData(const void* data, size_t length) SK_OVERRIDE; -protected: - virtual void onDrawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; - virtual void onDrawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; - private: lua_State* fL; SkString fFunc; |