| Index: src/core/SkImageFilterUtils.cpp
|
| diff --git a/src/core/SkImageFilterUtils.cpp b/src/core/SkImageFilterUtils.cpp
|
| index 92fe67e84c05e95452567bf685d6c4236140ade0..076ef9bb917df1c4258c20319ef1526a109562aa 100644
|
| --- a/src/core/SkImageFilterUtils.cpp
|
| +++ b/src/core/SkImageFilterUtils.cpp
|
| @@ -15,14 +15,8 @@
|
| #include "SkGr.h"
|
|
|
| bool SkImageFilterUtils::WrapTexture(GrTexture* texture, int width, int height, SkBitmap* result) {
|
| - SkImageInfo info = {
|
| - width,
|
| - height,
|
| - kPMColor_SkColorType,
|
| - kPremul_SkAlphaType,
|
| - };
|
| - result->setConfig(info);
|
| - result->setPixelRef(SkNEW_ARGS(SkGrPixelRef, (info, texture)))->unref();
|
| + SkImageInfo info = SkImageInfo::MakeN32Premul(width, height);
|
| + result->installPixelRef(SkNEW_ARGS(SkGrPixelRef, (info, texture)))->unref();
|
| return true;
|
| }
|
|
|
|
|