| Index: src/gpu/SkGpuDevice.cpp
|
| diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
|
| index 7a6d9675382cea1f6d11d7fe9c0c88bca038f312..b0beee0b0b927b4a2465c885e207c67247980e01 100644
|
| --- a/src/gpu/SkGpuDevice.cpp
|
| +++ b/src/gpu/SkGpuDevice.cpp
|
| @@ -193,6 +193,7 @@ GrRenderTarget* SkGpuDevice::CreateRenderTarget(
|
|
|
| SkColorType ct = origInfo.colorType();
|
| SkAlphaType at = origInfo.alphaType();
|
| + SkColorProfileType pt = origInfo.profileType();
|
| if (kRGB_565_SkColorType == ct) {
|
| at = kOpaque_SkAlphaType; // force this setting
|
| } else if (ct != kBGRA_8888_SkColorType && ct != kRGBA_8888_SkColorType) {
|
| @@ -202,7 +203,7 @@ GrRenderTarget* SkGpuDevice::CreateRenderTarget(
|
| if (kOpaque_SkAlphaType != at) {
|
| at = kPremul_SkAlphaType; // force this setting
|
| }
|
| - const SkImageInfo info = SkImageInfo::Make(origInfo.width(), origInfo.height(), ct, at);
|
| + const SkImageInfo info = SkImageInfo::Make(origInfo.width(), origInfo.height(), ct, at, pt);
|
|
|
| GrSurfaceDesc desc;
|
| desc.fFlags = kRenderTarget_GrSurfaceFlag;
|
|
|