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

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

Issue 2013723002: Consider ClipPathDisplayItems for GPU veto. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test asserts Created 4 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/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 93b307dc47d7b770379f6ffb7925ae1c452893b6..d7292ad64408c455867d8c40a39da4eb7981ce11 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp
@@ -16,8 +16,9 @@ namespace blink {
DisplayItem& DisplayItemList::appendByMoving(DisplayItem& item, const IntRect& visualRect, SkPictureGpuAnalyzer& gpuAnalyzer)
{
- if (item.isDrawing())
- gpuAnalyzer.analyze(static_cast<const DrawingDisplayItem&>(item).picture());
+ // No reason to continue the analysis once we have a veto.
+ if (gpuAnalyzer.suitableForGpuRasterization())
+ item.analyzeForGpuRasterization(gpuAnalyzer);
#ifndef NDEBUG
String originalDebugString = item.asDebugString();

Powered by Google App Engine
This is Rietveld 408576698