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

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

Issue 794323004: Emit dummy display item when recorded picture is empty (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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
« no previous file with comments | « Source/core/paint/ViewDisplayListTest.cpp ('k') | Source/platform/graphics/paint/ClipDisplayItem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/CachedDisplayItem.h
diff --git a/Source/platform/graphics/paint/CachedDisplayItem.h b/Source/platform/graphics/paint/CachedDisplayItem.h
index cac02750ac7b6336777b2008a3db0dd028bf256d..23aa65f583af21d63660c94a44d9ed30fca281a2 100644
--- a/Source/platform/graphics/paint/CachedDisplayItem.h
+++ b/Source/platform/graphics/paint/CachedDisplayItem.h
@@ -28,6 +28,10 @@ private:
// CachedDisplayItem is never replayed or appended to WebDisplayItemList.
virtual void replay(GraphicsContext*) override final { ASSERT_NOT_REACHED(); }
virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override final { ASSERT_NOT_REACHED(); }
+
+#ifndef NDEBUG
+ virtual const char* name() const override { return "Cached"; }
+#endif
};
} // namespace blink
« no previous file with comments | « Source/core/paint/ViewDisplayListTest.cpp ('k') | Source/platform/graphics/paint/ClipDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698