Index: cc/picture_layer_tiling.cc |
diff --git a/cc/picture_layer_tiling.cc b/cc/picture_layer_tiling.cc |
index fbeb89aefee83ea008c67ab50b47504a9becda49..831ae852a60941bb000a79f8e0fc34a8d58726ee 100644 |
--- a/cc/picture_layer_tiling.cc |
+++ b/cc/picture_layer_tiling.cc |
@@ -530,4 +530,13 @@ void PictureLayerTiling::DidBecomeActive() { |
} |
} |
+scoped_ptr<base::Value> PictureLayerTiling::AsValue() const { |
+ scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); |
+ state->SetInteger("num_tiles", tiles_.size()); |
+ state->SetDouble("content_scale", contents_scale_); |
+ state->SetInteger("content_width", ContentRect().width()); |
+ state->SetInteger("content_height", ContentRect().height()); |
nduca
2013/02/15 01:10:24
maybe also use a Size->Value?
enne (OOO)
2013/02/15 01:14:04
Done.
|
+ return state.PassAs<base::Value>(); |
+} |
+ |
} // namespace cc |