Index: third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.cpp |
diff --git a/third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.cpp b/third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.cpp |
index 5c584de8b6c120d00bce096aee79b0b30dc7962e..c4361e0f37b05abcbbf70c54d51b71417624a72b 100644 |
--- a/third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.cpp |
+++ b/third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.cpp |
@@ -13,10 +13,10 @@ namespace blink { |
SimDisplayItemList::SimDisplayItemList() {} |
-void SimDisplayItemList::AppendDrawingItem(const WebRect& visual_rect, |
- sk_sp<const PaintRecord> record, |
- const WebRect& record_bounds) { |
- SimCanvas canvas(record_bounds.width, record_bounds.height); |
+void SimDisplayItemList::AppendDrawingItem(const WebRect&, |
+ sk_sp<const PaintRecord> record) { |
+ SkIRect bounds = record->cullRect().roundOut(); |
+ SimCanvas canvas(bounds.width(), bounds.height()); |
record->playback(&canvas); |
commands_.Append(canvas.Commands().data(), canvas.Commands().size()); |
} |