Index: src/image/SkSurface_Gpu.cpp |
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
index 5b4bfafb16fe683b27374ab099f09828406fd584..4bf11a2d61473380b252f61358fea7555aa3a7b3 100644 |
--- a/src/image/SkSurface_Gpu.cpp |
+++ b/src/image/SkSurface_Gpu.cpp |
@@ -100,7 +100,8 @@ sk_sp<SkImage> SkSurface_Gpu::onNewImageSnapshot(SkBudgeted budgeted, ForceCopyM |
sk_sp<SkImage> image; |
if (tex) { |
image = sk_make_sp<SkImage_Gpu>(info.width(), info.height(), kNeedNewImageUniqueID, |
- info.alphaType(), tex, budgeted); |
+ info.alphaType(), tex, sk_ref_sp(info.colorSpace()), |
+ budgeted); |
} |
return image; |
} |