| 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..63e4f50e1c9f7ef0a32d278ca6b597deef655e1c 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
|
| @@ -16,8 +16,6 @@
|
| #include <stdio.h>
|
| #endif
|
|
|
| -static constexpr int kMaxNumberOfSlowPathsBeforeVeto = 5;
|
| -
|
| namespace blink {
|
|
|
| void PaintController::SetTracksRasterInvalidations(bool value) {
|
| @@ -584,9 +582,7 @@ void PaintController::CommitNewDisplayItems(
|
|
|
| Vector<const DisplayItemClient*> skipped_cache_clients;
|
| for (const auto& item : new_display_item_list_) {
|
| - // No reason to continue the analysis once we have a veto.
|
| - if (num_slow_paths <= kMaxNumberOfSlowPathsBeforeVeto)
|
| - num_slow_paths += item.NumberOfSlowPaths();
|
| + num_slow_paths += item.NumberOfSlowPaths();
|
|
|
| // TODO(wkorman): Only compute and append visual rect for drawings.
|
| new_display_item_list_.AppendVisualRect(
|
| @@ -612,9 +608,9 @@ void PaintController::CommitNewDisplayItems(
|
| for (const auto& chunk : current_paint_artifact_.PaintChunks())
|
| raster_invalidation_tracking_info_->map.Remove(&chunk);
|
| }
|
| - current_paint_artifact_ = PaintArtifact(
|
| - std::move(new_display_item_list_), new_paint_chunks_.ReleasePaintChunks(),
|
| - num_slow_paths <= kMaxNumberOfSlowPathsBeforeVeto);
|
| + current_paint_artifact_ =
|
| + PaintArtifact(std::move(new_display_item_list_),
|
| + new_paint_chunks_.ReleasePaintChunks(), num_slow_paths);
|
|
|
| ResetCurrentListIndices();
|
| out_of_order_item_indices_.clear();
|
|
|