diff options
author | 2012-12-17 22:32:06 +0000 | |
---|---|---|
committer | 2012-12-17 22:32:06 +0000 | |
commit | 6006b5641e575181f2d6f1212b8db491b2c2671c (patch) | |
tree | 86801439bf541d43c692a7dc604e5f4bb2ed0dca /src/core | |
parent | 5683d42d3aa9c0b2a680a1c4766205a06565f196 (diff) |
Fix SkBBoxRecord to correctly handle SkRect arguments that are inverted rects.
BUG=http://code.google.com/p/skia/issues/detail?id=1014
TEST=gm strokerect with --tileGrid
Review URL: https://codereview.appspot.com/6945071
git-svn-id: http://skia.googlecode.com/svn/trunk@6870 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkBBoxRecord.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkBBoxRecord.cpp b/src/core/SkBBoxRecord.cpp index cc18c7af25..2014c5674b 100644 --- a/src/core/SkBBoxRecord.cpp +++ b/src/core/SkBBoxRecord.cpp @@ -257,12 +257,13 @@ void SkBBoxRecord::drawPicture(SkPicture& picture) { bool SkBBoxRecord::transformBounds(const SkRect& bounds, const SkPaint* paint) { SkRect outBounds = bounds; + outBounds.sort(); if (paint) { // account for stroking, path effects, shadows, etc if (paint->canComputeFastBounds()) { SkRect temp; - outBounds = paint->computeFastBounds(bounds, &temp); + outBounds = paint->computeFastBounds(outBounds, &temp); } else { // set bounds to current clip if (!this->getClipBounds(&outBounds)) { |