Remove uses of SkImageDecoder from samplecode
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1812323003
Review URL: https://codereview.chromium.org/1812323003
diff --git a/samplecode/SampleLines.cpp b/samplecode/SampleLines.cpp
index da5fa57..08a9e86 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 @@
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);