Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.cpp

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 c4361e0f37b05abcbbf70c54d51b71417624a72b..5c584de8b6c120d00bce096aee79b0b30dc7962e 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&,
- sk_sp<const PaintRecord> record) {
- SkIRect bounds = record->cullRect().roundOut();
- SimCanvas canvas(bounds.width(), bounds.height());
+void SimDisplayItemList::AppendDrawingItem(const WebRect& visual_rect,
+ sk_sp<const PaintRecord> record,
+ const WebRect& record_bounds) {
+ SimCanvas canvas(record_bounds.width, record_bounds.height);
record->playback(&canvas);
commands_.Append(canvas.Commands().data(), canvas.Commands().size());
}
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.h ('k') | third_party/WebKit/public/platform/WebDisplayItemList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698