aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/copyTo4444.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/copyTo4444.cpp')
-rw-r--r--gm/copyTo4444.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/copyTo4444.cpp b/gm/copyTo4444.cpp
index ed0c046fa9..76dc66ca7c 100644
--- a/gm/copyTo4444.cpp
+++ b/gm/copyTo4444.cpp
@@ -31,8 +31,7 @@ protected:
virtual void onDraw(SkCanvas* canvas) {
SkBitmap bm, bm4444;
SkString filename = SkOSPath::SkPathJoin(INHERITED::gResourcePath, "mandrill_512.png");
- if (!SkImageDecoder::DecodeFile(filename.c_str(), &bm,
- SkBitmap::kARGB_8888_Config,
+ if (!SkImageDecoder::DecodeFile(filename.c_str(), &bm, kN32_SkColorType,
SkImageDecoder::kDecodePixels_Mode)) {
SkDebugf("Could not decode the file. Did you forget to set the "
"resourcePath?\n");