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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h

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/DisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
index 09dbf633de5a044fc8562ba5098ad90731426857..a5304a5a1b70948a6037fd3b4ad148f5e444ca70 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
@@ -18,6 +18,7 @@
#include "wtf/text/WTFString.h"
#endif
+class SkPictureGpuAnalyzer;
namespace blink {
@@ -350,6 +351,9 @@ public:
virtual bool drawsContent() const { return false; }
+ // Override to implement specific analysis strategies.
+ virtual void analyzeForGpuRasterization(SkPictureGpuAnalyzer&) const { }
+
#ifndef NDEBUG
static WTF::String typeAsDebugString(DisplayItem::Type);
const WTF::String clientDebugString() const { return m_clientDebugString; }

Powered by Google App Engine
This is Rietveld 408576698