Index: dm/DMSKPTask.cpp |
diff --git a/dm/DMSKPTask.cpp b/dm/DMSKPTask.cpp |
index 765fe108ce09e136ec21a679b5926d4f7e32b0c8..ece7e9a716897027298572f832700e9a5a2c3469 100644 |
--- a/dm/DMSKPTask.cpp |
+++ b/dm/DMSKPTask.cpp |
@@ -14,8 +14,8 @@ SKPTask::SKPTask(Reporter* r, TaskRunner* tr, const SkPicture* pic, SkString fil |
: CpuTask(r, tr), fPicture(SkRef(pic)), fName(FileToTaskName(filename)) {} |
void SKPTask::draw() { |
- const int width = SkTMin(fPicture->width(), FLAGS_skpMaxWidth), |
- height = SkTMin(fPicture->height(), FLAGS_skpMaxHeight); |
+ const int width = SkTMin(SkScalarCeilToInt(fPicture->cullRect().width()), FLAGS_skpMaxWidth), |
+ height = SkTMin(SkScalarCeilToInt(fPicture->cullRect().height()), FLAGS_skpMaxHeight); |
SkBitmap bitmap; |
AllocatePixels(kN32_SkColorType, width, height, &bitmap); |
DrawPicture(*fPicture, &bitmap); |