aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMSrcSink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dm/DMSrcSink.cpp')
-rw-r--r--dm/DMSrcSink.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
index 2d8d949e7b..1d8aab1fc1 100644
--- a/dm/DMSrcSink.cpp
+++ b/dm/DMSrcSink.cpp
@@ -1855,9 +1855,9 @@ Error GPUSink::onDraw(const Src& src, SkBitmap* dst, SkWStream*, SkString* log,
auto colorType = SkColorTypeToGrColorType(info.colorType());
backendRT = context->contextPriv().getGpu()->createTestingOnlyBackendRenderTarget(
info.width(), info.height(), colorType, srgbEncoded);
- surface = SkSurface::MakeFromBackendRenderTarget(context, backendRT,
- kBottomLeft_GrSurfaceOrigin,
- info.refColorSpace(), &props);
+ surface = SkSurface::MakeFromBackendRenderTarget(
+ context, backendRT, kBottomLeft_GrSurfaceOrigin, info.colorType(),
+ info.refColorSpace(), &props);
}
break;
}