Index: samplecode/SampleLines.cpp |
diff --git a/samplecode/SampleLines.cpp b/samplecode/SampleLines.cpp |
index da5fa57681e218f87c20332038b6fffafcd71cfe..08a9e86c4b1b8bbb915f8437d9aa1a9c6abf7e9c 100644 |
--- a/samplecode/SampleLines.cpp |
+++ b/samplecode/SampleLines.cpp |
@@ -5,13 +5,13 @@ |
* found in the LICENSE file. |
*/ |
+#include "DecodeFile.h" |
#include "SampleCode.h" |
#include "SkView.h" |
#include "SkCanvas.h" |
#include "SkCornerPathEffect.h" |
#include "SkGradientShader.h" |
#include "SkGraphics.h" |
-#include "SkImageDecoder.h" |
#include "SkPath.h" |
#include "SkRandom.h" |
#include "SkRegion.h" |
@@ -25,7 +25,6 @@ |
#include "SkStream.h" |
#include "SkColorPriv.h" |
-#include "SkImageDecoder.h" |
class LinesView : public SampleView { |
public: |
@@ -63,7 +62,7 @@ protected: |
void onDrawContent(SkCanvas* canvas) override { |
SkBitmap bm; |
- SkImageDecoder::DecodeFile("/kill.gif", &bm); |
+ decode_file("/kill.gif", &bm); |
canvas->drawBitmap(bm, 0, 0, nullptr); |
this->drawRings(canvas); |