Index: cc/nine_patch_layer_impl.cc |
diff --git a/cc/nine_patch_layer_impl.cc b/cc/nine_patch_layer_impl.cc |
index 46a8af270a21b6da23fdd29030d9890af4264e70..d715fe68c473eee4284f9c8a1ee012909c52b466 100644 |
--- a/cc/nine_patch_layer_impl.cc |
+++ b/cc/nine_patch_layer_impl.cc |
@@ -5,6 +5,7 @@ |
#include "nine_patch_layer_impl.h" |
#include "base/stringprintf.h" |
+#include "base/values.h" |
#include "cc/quad_sink.h" |
#include "cc/texture_draw_quad.h" |
#include "ui/gfx/rect_f.h" |
@@ -163,4 +164,18 @@ void NinePatchLayerImpl::dumpLayerProperties(std::string* str, int indent) const |
LayerImpl::dumpLayerProperties(str, indent); |
} |
+base::DictionaryValue* NinePatchLayerImpl::layerTreeAsJson() const |
+{ |
+ base::DictionaryValue* result = LayerImpl::layerTreeAsJson(); |
+ |
+ base::ListValue* list = new base::ListValue; |
+ list->AppendInteger(m_imageAperture.origin().x()); |
+ list->AppendInteger(m_imageAperture.origin().y()); |
+ list->AppendInteger(m_imageAperture.size().width()); |
+ list->AppendInteger(m_imageAperture.size().height()); |
+ result->Set("ImageAperture", list); |
+ |
+ return result; |
+} |
+ |
} |