diff options
author | msarett <msarett@google.com> | 2016-03-18 15:48:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-18 15:48:49 -0700 |
commit | d15750c0c7766ecab7022ea9b2f9e89a9132cbc2 (patch) | |
tree | e697c7285402a9b32a1b5b390e20e73a253081c0 /samplecode/SamplePatch.cpp | |
parent | 07ec54d8e6c0e7e6ea11cde867c00bd29da79063 (diff) |
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
Diffstat (limited to 'samplecode/SamplePatch.cpp')
-rw-r--r-- | samplecode/SamplePatch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samplecode/SamplePatch.cpp b/samplecode/SamplePatch.cpp index 3ce350ac47..641e1e98f3 100644 --- a/samplecode/SamplePatch.cpp +++ b/samplecode/SamplePatch.cpp @@ -5,13 +5,13 @@ * found in the LICENSE file. */ +#include "DecodeFile.h" #include "SampleCode.h" #include "SkAnimTimer.h" #include "SkView.h" #include "SkCanvas.h" #include "SkGradientShader.h" #include "SkGraphics.h" -#include "SkImageDecoder.h" #include "SkPath.h" #include "SkRandom.h" #include "SkRegion.h" @@ -31,8 +31,8 @@ static sk_sp<SkShader> make_shader0(SkIPoint* size) { SkBitmap bm; -// SkImageDecoder::DecodeFile("/skimages/progressivejpg.jpg", &bm); - SkImageDecoder::DecodeFile("/skimages/logo.png", &bm); +// decode_file("/skimages/progressivejpg.jpg", &bm); + decode_file("/skimages/logo.png", &bm); size->set(bm.width(), bm.height()); return SkShader::MakeBitmapShader(bm, SkShader::kClamp_TileMode, SkShader::kClamp_TileMode); |