Index: third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp |
index 99229a013de5112f1a441b962747188779e123a5..9d79a3a211b8cac0767ae97c759398b000bf464b 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp |
@@ -676,14 +676,13 @@ size_t PaintController::ApproximateUnsharedMemoryUsage() const { |
void PaintController::AppendDebugDrawingAfterCommit( |
const DisplayItemClient& display_item_client, |
sk_sp<PaintRecord> record, |
- const FloatRect& record_bounds, |
const LayoutSize& offset_from_layout_object) { |
DCHECK(new_display_item_list_.IsEmpty()); |
DrawingDisplayItem& display_item = |
current_paint_artifact_.GetDisplayItemList() |
- .AllocateAndConstruct<DrawingDisplayItem>( |
- display_item_client, DisplayItem::kDebugDrawing, |
- std::move(record), record_bounds); |
+ .AllocateAndConstruct<DrawingDisplayItem>(display_item_client, |
+ DisplayItem::kDebugDrawing, |
+ std::move(record)); |
display_item.SetSkippedCache(); |
// TODO(wkorman): Only compute and append visual rect for drawings. |
current_paint_artifact_.GetDisplayItemList().AppendVisualRect( |
@@ -860,28 +859,20 @@ void PaintController::ShowUnderInvalidationError( |
#ifndef NDEBUG |
const PaintRecord* new_record = nullptr; |
- SkRect new_bounds; |
if (new_item.IsDrawing()) { |
new_record = |
static_cast<const DrawingDisplayItem&>(new_item).GetPaintRecord().get(); |
- new_bounds = |
- static_cast<const DrawingDisplayItem&>(new_item).GetPaintRecordBounds(); |
} |
const PaintRecord* old_record = nullptr; |
- SkRect old_bounds; |
if (old_item->IsDrawing()) { |
old_record = static_cast<const DrawingDisplayItem*>(old_item) |
->GetPaintRecord() |
.get(); |
- old_bounds = |
- static_cast<const DrawingDisplayItem&>(new_item).GetPaintRecordBounds(); |
} |
LOG(INFO) << "new record:\n" |
- << (new_record ? RecordAsDebugString(new_record, new_bounds) |
- : "None"); |
+ << (new_record ? RecordAsDebugString(new_record) : "None"); |
LOG(INFO) << "old record:\n" |
- << (old_record ? RecordAsDebugString(old_record, old_bounds) |
- : "None"); |
+ << (old_record ? RecordAsDebugString(old_record) : "None"); |
ShowDebugData(); |
#endif // NDEBUG |