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

Unified Diff: cc/nine_patch_layer_impl.cc

Issue 11366135: Extra logging for NinePatch layers in layerTreeAsText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ninepatch
Patch Set: Created 8 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 | « cc/layer_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/nine_patch_layer_impl.cc
diff --git a/cc/nine_patch_layer_impl.cc b/cc/nine_patch_layer_impl.cc
index d271eb0c1066ae7f42b42aad57e0099cbff3f32c..477ca1e577cc4aa03cb2b3e2ee3cfd3a18af16d7 100644
--- a/cc/nine_patch_layer_impl.cc
+++ b/cc/nine_patch_layer_impl.cc
@@ -6,6 +6,7 @@
#include "nine_patch_layer_impl.h"
+#include "base/stringprintf.h"
#include "cc/quad_sink.h"
#include "cc/texture_draw_quad.h"
#include "ui/gfx/rect_f.h"
@@ -27,12 +28,6 @@ ResourceProvider::ResourceId NinePatchLayerImpl::contentsResourceId() const
return 0;
}
-void NinePatchLayerImpl::dumpLayerProperties(std::string* str, int indent) const
-{
- LayerImpl::dumpLayerProperties(str, indent);
-}
-
-
void NinePatchLayerImpl::willDraw(ResourceProvider* resourceProvider)
{
}
@@ -114,4 +109,11 @@ const char* NinePatchLayerImpl::layerTypeAsString() const
return "NinePatchLayer";
}
+void NinePatchLayerImpl::dumpLayerProperties(std::string* str, int indent) const
+{
+ str->append(indentString(indent));
+ base::StringAppendF(str, "m_imageAperture: %s\n", m_imageAperture.ToString().c_str());
danakj 2012/11/07 21:31:35 nit: drop the m_ it's cleaner. maybe consider put
+ LayerImpl::dumpLayerProperties(str, indent);
+}
+
}
danakj 2012/11/07 19:00:01 } // namespace cc
« no previous file with comments | « cc/layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698