Index: cc/resources/picture_layer_tiling.cc |
diff --git a/cc/resources/picture_layer_tiling.cc b/cc/resources/picture_layer_tiling.cc |
index 64661c1a6981eb87541742fd56e69ae43b691ffc..2809d70be41ea05b59040ba0aabf3f3334123adf 100644 |
--- a/cc/resources/picture_layer_tiling.cc |
+++ b/cc/resources/picture_layer_tiling.cc |
@@ -9,6 +9,7 @@ |
#include <limits> |
#include "base/debug/trace_event.h" |
+#include "base/debug/trace_event_argument.h" |
#include "cc/base/math_util.h" |
#include "cc/resources/tile.h" |
#include "cc/resources/tile_priority.h" |
@@ -658,12 +659,12 @@ void PictureLayerTiling::DidBecomeActive() { |
} |
} |
-scoped_ptr<base::Value> PictureLayerTiling::AsValue() const { |
- scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); |
+void PictureLayerTiling::AsValueInto(base::debug::TracedValue* state) const { |
state->SetInteger("num_tiles", tiles_.size()); |
state->SetDouble("content_scale", contents_scale_); |
- state->Set("tiling_size", MathUtil::AsValue(tiling_size()).release()); |
- return state.PassAs<base::Value>(); |
+ state->BeginDictionary("tiling_size"); |
+ MathUtil::AddToTracedValue(tiling_size(), state); |
+ state->EndDictionary(); |
} |
size_t PictureLayerTiling::GPUMemoryUsageInBytes() const { |