Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1102)

Unified Diff: src/pdf/SkPDFShader.cpp

Issue 2185803003: SkPdf: SkPDFFormXObject de-class-ified. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-07-27 (Wednesday) 17:00:53 EDT Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pdf/SkPDFGraphicState.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « src/pdf/SkPDFGraphicState.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698