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

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

Issue 702633002: Move ViewDisplayList to GraphicsLayer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: copy & pasted test expectation from the wrong window. sorry. :( 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/GraphicsLayer.cpp ('k') | Source/platform/graphics/paint/ClipDisplayItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/ClipDisplayItem.h
diff --git a/Source/platform/graphics/paint/ClipDisplayItem.h b/Source/platform/graphics/paint/ClipDisplayItem.h
new file mode 100644
index 0000000000000000000000000000000000000000..c599ca7f13742ead3f4b05e9c75d4620fa5b4c67
--- /dev/null
+++ b/Source/platform/graphics/paint/ClipDisplayItem.h
@@ -0,0 +1,44 @@
+// 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 ClipDisplayItem_h
+#define ClipDisplayItem_h
+
+#include "platform/PlatformExport.h"
+#include "platform/geometry/IntRect.h"
+#include "platform/graphics/paint/DisplayItem.h"
+#include "wtf/Vector.h"
+
+namespace blink {
+
+class RoundedRect;
+
+class PLATFORM_EXPORT ClipDisplayItem : public DisplayItem {
+public:
+ ClipDisplayItem(DisplayItemClient client, Type type, IntRect clipRect)
+ : DisplayItem(client, type), m_clipRect(clipRect) { }
+
+ Vector<RoundedRect>& roundedRectClips() { return m_roundedRectClips; }
+
+private:
+ virtual void replay(GraphicsContext*) override;
+
+ IntRect m_clipRect;
+ Vector<RoundedRect> m_roundedRectClips;
+#ifndef NDEBUG
+ virtual WTF::String asDebugString() const override;
+#endif
+};
+
+class PLATFORM_EXPORT EndClipDisplayItem : public DisplayItem {
+public:
+ EndClipDisplayItem() : DisplayItem(0, EndClip) { }
+
+private:
+ virtual void replay(GraphicsContext*) override;
+};
+
+} // namespace blink
+
+#endif // ClipDisplayItem_h
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | Source/platform/graphics/paint/ClipDisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698