| Index: dm/DMSrcSink.cpp
|
| diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
|
| index 9e45ce9b692ca25726d791e497567fe77dad41b9..f142fddb9ae3f8280f949f8db1e237daf476a556 100644
|
| --- a/dm/DMSrcSink.cpp
|
| +++ b/dm/DMSrcSink.cpp
|
| @@ -855,11 +855,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*) {}
|
| @@ -884,7 +888,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();
|
|
|