diff options
author | 2011-05-11 18:46:03 +0000 | |
---|---|---|
committer | 2011-05-11 18:46:03 +0000 | |
commit | 78dad54080ad806be89adb5cc0e3c530b031cdaf (patch) | |
tree | ae8990938c5faa06c165d58d2f371abf82843722 /include | |
parent | 76c5847bcd8eed1ab223f018db3d52ce008bf944 (diff) |
[PDF] Fix Chrome crash - don't assume that SkDraw.fClipStack != NULL.
Chrome bug is crbug.com/82198.
Review URL: http://codereview.appspot.com/4515061
git-svn-id: http://skia.googlecode.com/svn/trunk@1306 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/pdf/SkPDFDevice.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/pdf/SkPDFDevice.h b/include/pdf/SkPDFDevice.h index bef0dbadb7..9ab0ae51f6 100644 --- a/include/pdf/SkPDFDevice.h +++ b/include/pdf/SkPDFDevice.h @@ -165,12 +165,12 @@ private: // If the paint or clip is such that we shouldn't draw anything, these // return false and do not create a content entry. - bool setUpContentEntry(const SkClipStack& clipStack, + bool setUpContentEntry(const SkClipStack* clipStack, const SkRegion& clipRegion, const SkMatrix& matrix, const SkPaint& paint, bool hasText = false); - bool setUpContentEntryForText(const SkClipStack& clipStack, + bool setUpContentEntryForText(const SkClipStack* clipStack, const SkRegion& clipRegion, const SkMatrix& matrix, const SkPaint& paint); @@ -187,7 +187,7 @@ private: void internalDrawPaint(const SkPaint& paint); void internalDrawBitmap(const SkMatrix& matrix, - const SkClipStack& clipStack, + const SkClipStack* clipStack, const SkRegion& clipRegion, const SkBitmap& bitmap, const SkIRect* srcRect, |