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 /experimental/PdfViewer | |
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 'experimental/PdfViewer')
-rw-r--r-- | experimental/PdfViewer/SkNulCanvas.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/experimental/PdfViewer/SkNulCanvas.h b/experimental/PdfViewer/SkNulCanvas.h index c43ea82918..8ec2d32d0f 100644 --- a/experimental/PdfViewer/SkNulCanvas.h +++ b/experimental/PdfViewer/SkNulCanvas.h @@ -55,8 +55,10 @@ public: virtual void drawPaint(const SkPaint& paint) {} virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint) {} + virtual void drawRect(const SkRect& rect, const SkPaint& paint) {} virtual void drawOval(const SkRect& oval, const SkPaint&) {} virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) {} + virtual void drawPath(const SkPath& path, const SkPaint& paint) {} virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, const SkPaint* paint = NULL) {} virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, @@ -93,8 +95,6 @@ public: virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) {return NULL;} protected: - virtual void onDrawRect(const SkRect& rect, const SkPaint& paint) {} - virtual void onDrawPath(const SkPath& path, const SkPaint& paint) {} virtual SkCanvas* canvasForDrawIter() {return NULL;} virtual SkBaseDevice* setDevice(SkBaseDevice* device) {return NULL;} |