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

Unified Diff: cc/resources/clip_path_display_item.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months 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 | « cc/resources/clip_path_display_item.h ('k') | cc/resources/display_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/clip_path_display_item.cc
diff --git a/cc/resources/clip_path_display_item.cc b/cc/resources/clip_path_display_item.cc
index 4012124cd0efdf3533baba5d5380958d267ebe1f..1600e5511048b0790964763575dd6fc4e1ac0552 100644
--- a/cc/resources/clip_path_display_item.cc
+++ b/cc/resources/clip_path_display_item.cc
@@ -4,6 +4,8 @@
#include "cc/resources/clip_path_display_item.h"
+#include "base/strings/stringprintf.h"
+#include "base/trace_event/trace_event_argument.h"
#include "third_party/skia/include/core/SkCanvas.h"
namespace cc {
@@ -36,6 +38,11 @@ size_t ClipPathDisplayItem::PictureMemoryUsage() const {
return total_size;
}
+void ClipPathDisplayItem::AsValueInto(base::debug::TracedValue* array) const {
+ array->AppendString(base::StringPrintf("ClipPathDisplayItem length: %d",
+ clip_path_.countPoints()));
+}
+
EndClipPathDisplayItem::EndClipPathDisplayItem() {
}
@@ -59,4 +66,9 @@ size_t EndClipPathDisplayItem::PictureMemoryUsage() const {
return 0;
}
+void EndClipPathDisplayItem::AsValueInto(
+ base::debug::TracedValue* array) const {
+ array->AppendString("EndClipPathDisplayItem");
+}
+
} // namespace cc
« no previous file with comments | « cc/resources/clip_path_display_item.h ('k') | cc/resources/display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698