| Index: dm/DMSrcSink.cpp
|
| diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
|
| index 2d2a455e7b7dab047cf7ee93306d664025dc0240..c1db17814a9180c25d71ccef95e90b259bea0222 100644
|
| --- a/dm/DMSrcSink.cpp
|
| +++ b/dm/DMSrcSink.cpp
|
| @@ -856,11 +856,15 @@ GPUSink::GPUSink(GrContextFactory::GLContextType ct,
|
| GrContextFactory::GLContextOptions options,
|
| int samples,
|
| bool diText,
|
| + SkColorType colorType,
|
| + SkColorProfileType profileType,
|
| bool threaded)
|
| : fContextType(ct)
|
| , fContextOptions(options)
|
| , fSampleCount(samples)
|
| , fUseDIText(diText)
|
| + , fColorType(colorType)
|
| + , fProfileType(profileType)
|
| , fThreaded(threaded) {}
|
|
|
| void PreAbandonGpuContextErrorHandler(SkError, void*) {}
|
| @@ -882,7 +886,8 @@ Error GPUSink::draw(const Src& src, SkBitmap* dst, SkWStream*, SkString* log) co
|
| GrContextFactory factory(grOptions);
|
| const SkISize size = src.size();
|
| const SkImageInfo info =
|
| - SkImageInfo::Make(size.width(), size.height(), kN32_SkColorType, kPremul_SkAlphaType);
|
| + SkImageInfo::Make(size.width(), size.height(), fColorType,
|
| + kPremul_SkAlphaType, fProfileType);
|
| #if SK_SUPPORT_GPU
|
| const int maxDimension = factory.getContextInfo(fContextType, fContextOptions).
|
| fGrContext->caps()->maxTextureSize();
|
|
|