diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-14 18:16:40 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-14 18:16:40 +0000 |
commit | 969fd6afc45df247377c35d9a273dce752af04aa (patch) | |
tree | 548e792f20829ef3a62e3cbe30237675e37937b0 /src/pdf | |
parent | 4fed643cb9caf0cda27c9610f61f5915ab3a86a2 (diff) |
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
Diffstat (limited to 'src/pdf')
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; |