From 969fd6afc45df247377c35d9a273dce752af04aa Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Tue, 14 May 2013 18:16:40 +0000 Subject: Sort points for PDF's draw rect, to match raster and GPU implementation. R=caryclark@google.com, vandebo@google.com Author: edisonn@google.com Review URL: https://chromiumcodereview.appspot.com/15162005 git-svn-id: http://skia.googlecode.com/svn/trunk@9125 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/pdf/SkPDFDevice.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/pdf') diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index 15da5a5621..db0825af3a 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -785,8 +785,11 @@ void SkPDFDevice::drawPoints(const SkDraw& d, SkCanvas::PointMode mode, } } -void SkPDFDevice::drawRect(const SkDraw& d, const SkRect& r, +void SkPDFDevice::drawRect(const SkDraw& d, const SkRect& rect, const SkPaint& paint) { + SkRect r = rect; + r.sort(); + if (paint.getPathEffect()) { if (d.fClip->isEmpty()) { return; -- cgit v1.2.3