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

Unified Diff: Source/core/paint/ClipRecorder.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/core/core.gypi ('k') | Source/core/paint/ClipRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ClipRecorder.h
diff --git a/Source/core/paint/ClipRecorder.h b/Source/core/paint/ClipRecorder.h
index d6790f679a99c84f5eca264ba812eb3340b4ae67..3dfe3725f506b6f492f5944ba53aebd018e874cc 100644
--- a/Source/core/paint/ClipRecorder.h
+++ b/Source/core/paint/ClipRecorder.h
@@ -5,15 +5,42 @@
#ifndef ClipRecorder_h
#define ClipRecorder_h
-#include "platform/graphics/paint/DisplayItem.h"
+#include "core/paint/ViewDisplayList.h"
+#include "core/rendering/PaintPhase.h"
+#include "platform/geometry/RoundedRect.h"
+#include "wtf/Vector.h"
namespace blink {
-class ClipDisplayItem;
class ClipRect;
class GraphicsContext;
+class RenderObject;
class RenderLayer;
-class RoundedRect;
+
+class ClipDisplayItem : public DisplayItem {
+public:
+ ClipDisplayItem(RenderObject* renderer, RenderLayer*, Type type, IntRect clipRect)
+ : DisplayItem(renderer, 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 EndClipDisplayItem : public DisplayItem {
+public:
+ EndClipDisplayItem() : DisplayItem(0, EndClip) { }
+
+private:
+ virtual void replay(GraphicsContext*) override;
+};
class ClipRecorder {
public:
@@ -30,4 +57,4 @@ private:
} // namespace blink
-#endif // ClipRecorder_h
+#endif // ViewDisplayList_h
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/paint/ClipRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698