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

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

Issue 2810363004: Revert of Back PaintRecord with PaintOpBuffer instead of SkPicture (Closed)
Patch Set: Created 3 years, 8 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 d5f344e605f4b55ad17dfdc5ccdad84f39636a49..a9afcd15e089043f595870ddfccb7224403b832c 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
@@ -16,6 +16,8 @@
#include "platform/wtf/text/StringBuilder.h"
#include "platform/wtf/text/WTFString.h"
#endif
+
+class SkPictureGpuAnalyzer;
namespace blink {
@@ -335,7 +337,7 @@
virtual bool DrawsContent() const { return false; }
// Override to implement specific analysis strategies.
- virtual int NumberOfSlowPaths() const { return 0; }
+ virtual void AnalyzeForGpuRasterization(SkPictureGpuAnalyzer&) const {}
#ifndef NDEBUG
static WTF::String TypeAsDebugString(DisplayItem::Type);

Powered by Google App Engine
This is Rietveld 408576698