Index: Source/platform/graphics/paint/DrawingDisplayItem.cpp |
diff --git a/Source/platform/graphics/paint/DrawingDisplayItem.cpp b/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9cabe727b422e0358b8776ff9bf87a6d6eb75755 |
--- /dev/null |
+++ b/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
@@ -0,0 +1,26 @@ |
+// 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. |
+ |
+#include "config.h" |
+#include "platform/graphics/paint/DrawingDisplayItem.h" |
+ |
+#include "platform/graphics/GraphicsContext.h" |
+ |
+namespace blink { |
+ |
+void DrawingDisplayItem::replay(GraphicsContext* context) |
+{ |
+ context->drawPicture(m_picture.get(), m_location); |
+} |
+ |
+#ifndef NDEBUG |
+WTF::String DrawingDisplayItem::asDebugString() const |
+{ |
+ return String::format("{%s, type: \"%s\", location: [%f,%f]}", |
+ clientDebugString().utf8().data(), typeAsDebugString(type()).utf8().data(), |
+ m_location.x(), m_location.y()); |
+} |
+#endif |
+ |
+} |