diff options
Diffstat (limited to 'samplecode/SampleEncode.cpp')
-rw-r--r-- | samplecode/SampleEncode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleEncode.cpp b/samplecode/SampleEncode.cpp index e36ab429ec..e4197bf0c7 100644 --- a/samplecode/SampleEncode.cpp +++ b/samplecode/SampleEncode.cpp @@ -3,7 +3,7 @@ #include "SkCanvas.h" #include "SkGradientShader.h" #include "SkGraphics.h" -#include "SkImageDecoder.h" +#include "SkImageEncoder.h" #include "SkPath.h" #include "SkPorterDuff.h" #include "SkRegion.h" @@ -129,7 +129,7 @@ public: remove(path.c_str()); SkImageEncoder* codec = SkImageEncoder::Create(gTypes[j]); - if (!codec->encodeFile(path.c_str(), fBitmaps[i])) { + if (!codec->encodeFile(path.c_str(), fBitmaps[i], 100)) { SkDebugf("------ failed to encode %s\n", path.c_str()); remove(path.c_str()); // remove any partial file } |