Index: src/pdf/SkPDFShader.cpp |
diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp |
index 13b4479dec3be37ddbfecebb89e0081538c69187..51d7442d96eb0c1c0c6f8eb5261835147193810f 100644 |
--- a/src/pdf/SkPDFShader.cpp |
+++ b/src/pdf/SkPDFShader.cpp |
@@ -703,9 +703,10 @@ static sk_sp<SkPDFObject> create_smask_graphic_state( |
auto resources = |
get_gradient_resource_dict(luminosityShader.get(), nullptr); |
- sk_sp<SkPDFFormXObject> alphaMask( |
- new SkPDFFormXObject(std::move(alphaStream), bbox, resources.get())); |
- |
+ auto alphaMask = SkPDFMakeFormXObject(std::move(alphaStream), |
+ SkPDFUtils::RectToArray(bbox), |
+ std::move(resources), |
+ "DeviceRGB"); |
return SkPDFGraphicState::GetSMaskGraphicState( |
alphaMask.get(), false, |
SkPDFGraphicState::kLuminosity_SMaskMode, doc->canon()); |