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

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

Issue 2107103002: Find cached display items directly during painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 5 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/CachedDisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/CachedDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/CachedDisplayItem.h
deleted file mode 100644
index 24b28887639db3f9d907458e1e8f82f492473f77..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/graphics/paint/CachedDisplayItem.h
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CachedDisplayItem_h
-#define CachedDisplayItem_h
-
-#include "platform/graphics/paint/DisplayItem.h"
-#include "wtf/Assertions.h"
-
-namespace blink {
-
-// A placeholder of a DrawingDisplayItem or a subtree in the new paint DisplayItemList,
-// to indicate that the DrawingDisplayItem/subtree has not been changed and should be replaced with
-// the cached DrawingDisplayItem/subtree when merging new paint list to cached paint list.
-class CachedDisplayItem final : public DisplayItem {
-public:
- CachedDisplayItem(const DisplayItemClient& client, Type type)
- : DisplayItem(client, type, sizeof(*this))
- {
- ASSERT(isCachedType(type));
- }
-
-private:
- // CachedDisplayItem is never replayed or appended to WebDisplayItemList.
- void replay(GraphicsContext&) const final { ASSERT_NOT_REACHED(); }
- void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const final { ASSERT_NOT_REACHED(); }
-};
-
-} // namespace blink
-
-#endif // CachedDisplayItem_h

Powered by Google App Engine
This is Rietveld 408576698