Add ToString() to gfx::Transform for easier debugging.
R=vollick
Review URL: https://chromiumcodereview.appspot.com/11635036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174226 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ui/gfx/transform.h b/ui/gfx/transform.h
index 7e2cc4f..6cd10b1 100644
--- a/ui/gfx/transform.h
+++ b/ui/gfx/transform.h
@@ -5,6 +5,8 @@
#ifndef UI_GFX_TRANSFORM_H_
#define UI_GFX_TRANSFORM_H_
+#include <string>
+
#include "base/compiler_specific.h"
#include "third_party/skia/include/utils/SkMatrix44.h"
#include "ui/base/ui_export.h"
@@ -161,6 +163,8 @@
const SkMatrix44& matrix() const { return matrix_; }
SkMatrix44& matrix() { return matrix_; }
+ std::string ToString() const;
+
private:
void TransformPointInternal(const SkMatrix44& xform,
Point& point) const;