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

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: drop the m_, it's cleaner 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') | cc/video_layer_impl.h » ('j') | 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..c68a9076b6e4401f03b33727c5053833770b247d 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, "imageAperture: %s\n", m_imageAperture.ToString().c_str());
+ LayerImpl::dumpLayerProperties(str, indent);
+}
+
}
danakj 2012/11/08 01:22:01 nit: } // namespace cc while you're here
« no previous file with comments | « cc/layer_impl.cc ('k') | cc/video_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698