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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CachedDisplayItem_h 5 #ifndef CachedDisplayItem_h
6 #define CachedDisplayItem_h 6 #define CachedDisplayItem_h
7 7
8 #include "platform/graphics/paint/DisplayItem.h" 8 #include "platform/graphics/paint/DisplayItem.h"
9 #include "wtf/Assertions.h" 9 #include "wtf/Assertions.h"
10 10
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 virtual bool isCached() const { return true; } 23 virtual bool isCached() const { return true; }
24 24
25 private: 25 private:
26 CachedDisplayItem(DisplayItemClient client, Type type) : DisplayItem(client, type) { } 26 CachedDisplayItem(DisplayItemClient client, Type type) : DisplayItem(client, type) { }
27 27
28 // CachedDisplayItem is never replayed or appended to WebDisplayItemList. 28 // CachedDisplayItem is never replayed or appended to WebDisplayItemList.
29 virtual void replay(GraphicsContext*) override final { ASSERT_NOT_REACHED(); } 29 virtual void replay(GraphicsContext*) override final { ASSERT_NOT_REACHED(); }
30 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override final { ASSERT_NOT_REACHED(); } 30 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override final { ASSERT_NOT_REACHED(); }
31
32 #ifndef NDEBUG
33 virtual const char* name() const override { return "Cached"; }
34 #endif
31 }; 35 };
32 36
33 } // namespace blink 37 } // namespace blink
34 38
35 #endif // CachedDisplayItem_h 39 #endif // CachedDisplayItem_h
OLDNEW
« 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