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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.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/ClipPathDisplayItem.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp b/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
index 3adc83ad15ed0cf2f60aba508d434c8df38f0206..2e1ea2c6305f92751934f61520d41c3f403afee8 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
@@ -7,6 +7,7 @@
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/Path.h"
#include "public/platform/WebDisplayItemList.h"
+#include "third_party/skia/include/core/SkPictureAnalyzer.h"
#include "third_party/skia/include/core/SkScalar.h"
namespace blink {
@@ -22,6 +23,11 @@ void BeginClipPathDisplayItem::appendToWebDisplayItemList(const IntRect& visualR
list->appendClipPathItem(visualRect, m_clipPath, SkRegion::kIntersect_Op, true);
}
+void BeginClipPathDisplayItem::analyzeForGpuRasterization(SkPictureGpuAnalyzer& analyzer) const
+{
+ analyzer.analyzeClipPath(m_clipPath, SkRegion::kIntersect_Op, true);
+}
+
void EndClipPathDisplayItem::replay(GraphicsContext& context) const
{
context.restore();

Powered by Google App Engine
This is Rietveld 408576698