0

Extra logging for NinePatch layers in layerTreeAsText()

BUG=


Review URL: https://chromiumcodereview.appspot.com/11366135

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166974 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
jamesr@chromium.org
2012-11-09 20:52:35 +00:00
parent 2a9893674f
commit 9a5710438b
4 changed files with 14 additions and 15 deletions

@ -270,6 +270,12 @@ void LayerImpl::dumpLayerProperties(std::string* str, int indent) const
base::StringAppendF(str, "renderTarget: %d\n", m_renderTarget->m_layerId);
}
str->append(indentStr);
base::StringAppendF(str, "position: %f, %f\n", m_position.x(), m_position.y());
str->append(indentStr);
base::StringAppendF(str, "contentsOpaque: %d\n", m_contentsOpaque);
str->append(indentStr);
base::StringAppendF(str, "drawTransform: %f, %f, %f, %f // %f, %f, %f, %f // %f, %f, %f, %f // %f, %f, %f, %f\n",
m_drawTransform.m11(), m_drawTransform.m12(), m_drawTransform.m13(), m_drawTransform.m14(),

@ -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);
}
}

@ -410,13 +410,6 @@ void VideoLayerImpl::setNeedsRedraw()
layerTreeHostImpl()->setNeedsRedraw();
}
void VideoLayerImpl::dumpLayerProperties(std::string* str, int indent) const
{
str->append(indentString(indent));
str->append("video layer\n");
LayerImpl::dumpLayerProperties(str, indent);
}
const char* VideoLayerImpl::layerTypeAsString() const
{
return "VideoLayer";

@ -44,8 +44,6 @@ public:
virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE;
virtual void didDraw(ResourceProvider*) OVERRIDE;
virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE;
// WebKit::WebVideoFrameProvider::Client implementation.
virtual void stopUsingProvider(); // Callable on any thread.
virtual void didReceiveFrame(); // Callable on impl thread.