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
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
index 15da5a5..db0825a 100644
--- a/src/pdf/SkPDFDevice.cpp
+++ b/src/pdf/SkPDFDevice.cpp
@@ -785,8 +785,11 @@
     }
 }
 
-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;