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

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

Issue 723103002: Revert "Move ViewDisplayList to GraphicsLayer" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/platform/graphics/paint/ClipDisplayItem.cpp ('k') | Source/platform/graphics/paint/DisplayItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/DisplayItem.h
diff --git a/Source/platform/graphics/paint/DisplayItem.h b/Source/platform/graphics/paint/DisplayItem.h
deleted file mode 100644
index f47dda81fe99a6ce1fa5e46d63d873a7da9de11d..0000000000000000000000000000000000000000
--- a/Source/platform/graphics/paint/DisplayItem.h
+++ /dev/null
@@ -1,93 +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 DisplayItem_h
-#define DisplayItem_h
-
-#include "platform/PlatformExport.h"
-
-#ifndef NDEBUG
-#include "wtf/text/WTFString.h"
-#endif
-
-namespace blink {
-
-class GraphicsContext;
-
-typedef void* DisplayItemClient;
-
-class PLATFORM_EXPORT DisplayItem {
-public:
- enum Type {
- // DisplayItem types must be kept in sync with PaintPhase.
- DrawingPaintPhaseBlockBackground = 0,
- DrawingPaintPhaseChildBlockBackground = 1,
- DrawingPaintPhaseChildBlockBackgrounds = 2,
- DrawingPaintPhaseFloat = 3,
- DrawingPaintPhaseForeground = 4,
- DrawingPaintPhaseOutline = 5,
- DrawingPaintPhaseChildOutlines = 6,
- DrawingPaintPhaseSelfOutline = 7,
- DrawingPaintPhaseSelection = 8,
- DrawingPaintPhaseCollapsedTableBorders = 9,
- DrawingPaintPhaseTextClip = 10,
- DrawingPaintPhaseMask = 11,
- DrawingPaintPhaseClippingMask = 12,
- ClipLayerOverflowControls = 13,
- ClipLayerBackground = 14,
- ClipLayerParent = 15,
- ClipLayerFilter = 16,
- ClipLayerForeground = 17,
- ClipLayerFragmentFloat = 18,
- ClipLayerFragmentForeground = 19,
- ClipLayerFragmentChildOutline = 20,
- ClipLayerFragmentOutline = 21,
- ClipLayerFragmentMask = 22,
- ClipLayerFragmentClippingMask = 23,
- ClipLayerFragmentParent = 24,
- ClipLayerFragmentSelection = 25,
- ClipLayerFragmentChildBlockBackgrounds = 26,
- EndClip = 27,
- };
-
- virtual ~DisplayItem() { }
-
- virtual void replay(GraphicsContext*) = 0;
-
- DisplayItemClient client() const { return m_id.client; }
- Type type() const { return m_id.type; }
- bool idsEqual(const DisplayItem& other) const { return m_id.client == other.m_id.client && m_id.type == other.m_id.type; }
-
-#ifndef NDEBUG
- static WTF::String typeAsDebugString(DisplayItem::Type);
-
- void setClientDebugString(const WTF::String& clientDebugString) { m_clientDebugString = clientDebugString; }
- const WTF::String& clientDebugString() const { return m_clientDebugString; }
-
- virtual WTF::String asDebugString() const;
-#endif
-
-protected:
- DisplayItem(DisplayItemClient client, Type type)
- : m_id(client, type)
- { }
-
-private:
- struct Id {
- Id(DisplayItemClient c, Type t)
- : client(c)
- , type(t)
- { }
-
- const DisplayItemClient client;
- const Type type;
- } m_id;
-#ifndef NDEBUG
- WTF::String m_clientDebugString;
-#endif
-};
-
-}
-
-#endif // DisplayItem_h
« no previous file with comments | « Source/platform/graphics/paint/ClipDisplayItem.cpp ('k') | Source/platform/graphics/paint/DisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698