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

Unified Diff: Source/core/paint/DrawingRecorder.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/paint/ClipRecorderTest.cpp ('k') | Source/core/paint/DrawingRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/DrawingRecorder.h
diff --git a/Source/core/paint/DrawingRecorder.h b/Source/core/paint/DrawingRecorder.h
index 3afd663c3d876c4c547dd41229346e26e43040c2..4f411b86921bcf42e63d44e710a2e5835e8a6def 100644
--- a/Source/core/paint/DrawingRecorder.h
+++ b/Source/core/paint/DrawingRecorder.h
@@ -5,13 +5,29 @@
#ifndef DrawingRecorder_h
#define DrawingRecorder_h
-#include "core/rendering/PaintPhase.h"
-#include "platform/geometry/FloatRect.h"
+#include "core/paint/ViewDisplayList.h"
+#include "platform/graphics/DisplayList.h"
namespace blink {
-class GraphicsContext;
-class RenderObject;
+class DrawingDisplayItem : public DisplayItem {
+public:
+ DrawingDisplayItem(PassRefPtr<SkPicture> picture, const FloatPoint& location, PaintPhase phase, const RenderObject* renderer)
+ : DisplayItem(renderer, (Type)phase), m_picture(picture), m_location(location) { }
+
+ PassRefPtr<SkPicture> picture() const { return m_picture; }
+ const FloatPoint& location() const { return m_location; }
+
+private:
+ virtual void replay(GraphicsContext*);
+
+ RefPtr<SkPicture> m_picture;
+ const FloatPoint m_location;
+#ifndef NDEBUG
+ virtual WTF::String asDebugString() const override;
+#endif
+};
+
class DrawingRecorder {
public:
« no previous file with comments | « Source/core/paint/ClipRecorderTest.cpp ('k') | Source/core/paint/DrawingRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698