| Index: third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
|
| index ec6345e49310ecb348b6f597d87528b18534af19..96d45d912247d4a489f746ae5f74524596d26a55 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
|
| @@ -115,14 +115,12 @@ void PaintArtifact::Replay(const FloatRect& bounds,
|
| }
|
|
|
| DISABLE_CFI_PERF
|
| -void PaintArtifact::AppendToWebDisplayItemList(WebDisplayItemList* list) const {
|
| +void PaintArtifact::AppendToWebDisplayItemList(
|
| + const LayoutSize& visual_rect_offset,
|
| + WebDisplayItemList* list) const {
|
| TRACE_EVENT0("blink,benchmark", "PaintArtifact::appendToWebDisplayItemList");
|
| - size_t visual_rect_index = 0;
|
| - for (const DisplayItem& display_item : display_item_list_) {
|
| - display_item.AppendToWebDisplayItemList(
|
| - display_item_list_.VisualRect(visual_rect_index), list);
|
| - visual_rect_index++;
|
| - }
|
| + for (const DisplayItem& item : display_item_list_)
|
| + item.AppendToWebDisplayItemList(visual_rect_offset, list);
|
| list->SetIsSuitableForGpuRasterization(IsSuitableForGpuRasterization());
|
| }
|
|
|
|
|