Index: samplecode/SamplePictFile.cpp |
diff --git a/samplecode/SamplePictFile.cpp b/samplecode/SamplePictFile.cpp |
index b456aef1bfd7ae49be391df679e83cd83f0668c0..c1958c8973136a53201d5cecad66c21a7c051dd3 100644 |
--- a/samplecode/SamplePictFile.cpp |
+++ b/samplecode/SamplePictFile.cpp |
@@ -5,13 +5,13 @@ |
* found in the LICENSE file. |
*/ |
+#include "DecodeFile.h" |
#include "SampleCode.h" |
#include "SkDumpCanvas.h" |
#include "SkView.h" |
#include "SkCanvas.h" |
#include "SkGradientShader.h" |
#include "SkGraphics.h" |
-#include "SkImageDecoder.h" |
#include "SkOSFile.h" |
#include "SkPath.h" |
#include "SkPicture.h" |
@@ -153,7 +153,7 @@ private: |
sk_sp<SkPicture> pic; |
SkBitmap bm; |
- if (SkImageDecoder::DecodeFile(path, &bm)) { |
+ if (decode_file(path, &bm)) { |
bm.setImmutable(); |
SkPictureRecorder recorder; |
SkCanvas* can = recorder.beginRecording(SkIntToScalar(bm.width()), |