aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/copyTo4444.cpp
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-03-18 12:13:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-18 12:13:47 -0700
commite820dfebbc652bfc4a653f07a29f5fe371eb019b (patch)
treea0bcb4e0bea909195ec49c6221f6449ae8275c98 /gm/copyTo4444.cpp
parentb5a94e3e24ef16f96ecfbe4ee427f7a0c69d7290 (diff)
Remove uses of SkImageDecoder from gms
Diffstat (limited to 'gm/copyTo4444.cpp')
-rw-r--r--gm/copyTo4444.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gm/copyTo4444.cpp b/gm/copyTo4444.cpp
index 635cc7b834..64f2c60746 100644
--- a/gm/copyTo4444.cpp
+++ b/gm/copyTo4444.cpp
@@ -9,7 +9,6 @@
#include "Resources.h"
#include "SkCanvas.h"
-#include "SkImageDecoder.h"
#include "SkOSFile.h"
namespace skiagm {
@@ -32,9 +31,7 @@ protected:
virtual void onDraw(SkCanvas* canvas) {
SkBitmap bm, bm4444;
- SkString pngFilename = GetResourcePath("mandrill_512.png");
- if (!SkImageDecoder::DecodeFile(pngFilename.c_str(), &bm, kN32_SkColorType,
- SkImageDecoder::kDecodePixels_Mode)) {
+ if (!GetResourceAsBitmap("mandrill_512.png", &bm)) {
SkDebugf("Could not decode the file. Did you forget to set the "
"resourcePath?\n");
return;