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

Unified Diff: Source/platform/graphics/paint/DrawingDisplayItem.cpp

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/paint/DrawingDisplayItem.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+
+}
« no previous file with comments | « Source/platform/graphics/paint/DrawingDisplayItem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698