diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-08 21:20:33 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-08 21:20:33 +0000 |
commit | 7c57e0e7ccb05a4b7ce05b883ba06380d5578881 (patch) | |
tree | 3df6426e7c4e953ad656e0fd078bf36ce681a063 | |
parent | 8d8847521e9a077d1c317c622dd76d7e8087d3bd (diff) |
apend sample_grab file name with .png
git-svn-id: http://skia.googlecode.com/svn/trunk@5451 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | samplecode/SampleApp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index 97a252cd5c..0e22dc5120 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -1375,7 +1375,7 @@ void SampleWindow::afterChildren(SkCanvas* orig) { if (device->accessBitmap(false).copyTo(&bmp, SkBitmap::kARGB_8888_Config)) { static int gSampleGrabCounter; SkString name; - name.printf("sample_grab_%d", gSampleGrabCounter++); + name.printf("sample_grab_%d.png", gSampleGrabCounter++); SkImageEncoder::EncodeFile(name.c_str(), bmp, SkImageEncoder::kPNG_Type, 100); } |