Index: src/core/SkBBoxRecord.cpp |
diff --git a/src/core/SkBBoxRecord.cpp b/src/core/SkBBoxRecord.cpp |
index 5837a88f5a5eb7a35acf651f8dd52dfd4cc2fdb3..5fe42f99d6525acbb9ceaa5ea2d1fe6b94cae608 100644 |
--- a/src/core/SkBBoxRecord.cpp |
+++ b/src/core/SkBBoxRecord.cpp |
@@ -313,8 +313,7 @@ void SkBBoxRecord::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4] |
void SkBBoxRecord::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, |
const SkPaint* paint) { |
- SkRect bounds = SkRect::MakeWH(SkIntToScalar(picture->width()), |
- SkIntToScalar(picture->height())); |
+ SkRect bounds = picture->cullRect(); |
// todo: wonder if we should allow passing an optional matrix to transformBounds so we don't |
// end up transforming the rect twice. |
if (matrix) { |