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

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

Issue 794323004: Emit dummy display item when recorded picture is empty (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a missed "override" Created 6 years 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: Source/platform/graphics/paint/DisplayItem.h
diff --git a/Source/platform/graphics/paint/DisplayItem.h b/Source/platform/graphics/paint/DisplayItem.h
index b6c5bfcd6d3b0554283b48e6197c6592ebf055ad..30904eeb0600659760646a47916bc6d993b70469 100644
--- a/Source/platform/graphics/paint/DisplayItem.h
+++ b/Source/platform/graphics/paint/DisplayItem.h
@@ -7,6 +7,7 @@
#include "platform/PlatformExport.h"
#include "wtf/Assertions.h"
+#include "wtf/PassOwnPtr.h"
#ifndef NDEBUG
#include "wtf/text/StringBuilder.h"
@@ -74,6 +75,8 @@ public:
Resizer
};
+ static PassOwnPtr<DisplayItem> createDummy(DisplayItemClient, Type);
+
virtual ~DisplayItem() { }
virtual void replay(GraphicsContext*) = 0;
@@ -91,6 +94,7 @@ public:
const WTF::String& clientDebugString() const { return m_clientDebugString; }
WTF::String asDebugString() const;
+ virtual const char* name() const = 0;
virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const;
#endif

Powered by Google App Engine
This is Rietveld 408576698