Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 2e62647293b3250f291fdf4315fbe47bb0e4dd79..431238b9db27f2350334fb879e1be650e849ac92 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -738,7 +738,7 @@ |
texture->asImageInfo(&info); |
SkBitmap result; |
- result.setInfo(info); |
+ result.setConfig(info); |
result.setPixelRef(SkNEW_ARGS(SkGrPixelRef, (info, texture)))->unref(); |
return result; |
} |
@@ -1818,7 +1818,7 @@ |
static void wrap_texture(GrTexture* texture, int width, int height, SkBitmap* result) { |
SkImageInfo info = SkImageInfo::MakeN32Premul(width, height); |
- result->setInfo(info); |
+ result->setConfig(info); |
result->setPixelRef(SkNEW_ARGS(SkGrPixelRef, (info, texture)))->unref(); |
} |