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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp

Issue 2107103002: Find cached display items directly during painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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/platform/graphics/paint/DisplayItemList.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp
index d7292ad64408c455867d8c40a39da4eb7981ce11..c3f23f10a33fa5d6f954b9215cd12441797ab435 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp
@@ -14,12 +14,8 @@
namespace blink {
-DisplayItem& DisplayItemList::appendByMoving(DisplayItem& item, const IntRect& visualRect, SkPictureGpuAnalyzer& gpuAnalyzer)
+DisplayItem& DisplayItemList::appendByMoving(DisplayItem& item)
{
- // No reason to continue the analysis once we have a veto.
jbroman 2016/07/06 19:09:37 Why is this no longer needed?
Xianzhu 2016/07/06 19:29:34 Now this is done in PaintController::commitNewDisp
- if (gpuAnalyzer.suitableForGpuRasterization())
- item.analyzeForGpuRasterization(gpuAnalyzer);
-
#ifndef NDEBUG
String originalDebugString = item.asDebugString();
#endif
@@ -33,7 +29,6 @@ DisplayItem& DisplayItemList::appendByMoving(DisplayItem& item, const IntRect& v
// Save original debug string in the old item to help debugging.
item.setClientDebugString(originalDebugString);
#endif
- appendVisualRect(visualRect);
return result;
}

Powered by Google App Engine
This is Rietveld 408576698