diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-15 20:17:47 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-15 20:17:47 +0000 |
commit | 76f9e938df0b5826fd4c80b854ceafaf385cfbe1 (patch) | |
tree | 5e72265c6e177791a1fff149763308454c958429 /samplecode | |
parent | 06b8a19b5693a352cabe8e624469e67e335bc369 (diff) |
Added print out of SkShader information to debugger
https://codereview.appspot.com/7105045/
git-svn-id: http://skia.googlecode.com/svn/trunk@7201 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SamplePicture.cpp | 2 | ||||
-rw-r--r-- | samplecode/SampleSkLayer.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/samplecode/SamplePicture.cpp b/samplecode/SamplePicture.cpp index 17a0d7580a..7134a1f2fc 100644 --- a/samplecode/SamplePicture.cpp +++ b/samplecode/SamplePicture.cpp @@ -153,11 +153,13 @@ protected: canvas->drawPicture(*pict); canvas->restore(); +#ifdef SK_DEVELOPER if (false) { SkDebugfDumper dumper; SkDumpCanvas dumpCanvas(&dumper); dumpCanvas.drawPicture(*pict); } +#endif // test that we can re-record a subpicture, and see the results diff --git a/samplecode/SampleSkLayer.cpp b/samplecode/SampleSkLayer.cpp index e7c0ddbe57..7d7451f62a 100644 --- a/samplecode/SampleSkLayer.cpp +++ b/samplecode/SampleSkLayer.cpp @@ -56,7 +56,7 @@ static void test_33(const SkMatrix44& mat, if (dst[0] != x0 || dst[1] != x1 || dst[2] != x2 || dst[3] != y0 || dst[4] != y1 || dst[5] != y2) { SkString str; - dst.toDumpString(&str); + dst.toString(&str); SkDebugf("3x3: expected 3x3 [%g %g %g] [%g %g %g] bug got %s\n", x0, x1, x2, y0, y1, y2, str.c_str()); } @@ -116,7 +116,7 @@ static void dump_layers(const SkLayer* layer, int tab = 0) { SkString matrixStr; layer->getLocalTransform(&matrix); - matrix.toDumpString(&matrixStr); + matrix.toString(&matrixStr); for (int j = 0; j < tab; j++) { SkDebugf(" "); |