From d0c38315e81b399a5ea9b5ffd8661270d209203d Mon Sep 17 00:00:00 2001 From: halcanary Date: Tue, 9 Aug 2016 20:04:01 -0700 Subject: [PATCH] SkPDF: bikeshed: use `auto` less BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2234623002 Review-Url: https://codereview.chromium.org/2234623002 --- src/pdf/SkPDFShader.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp index f7aef63..2fe01d9 100644 --- a/src/pdf/SkPDFShader.cpp +++ b/src/pdf/SkPDFShader.cpp @@ -653,14 +653,15 @@ static sk_sp create_smask_graphic_state( std::unique_ptr alphaStream(create_pattern_fill_content(-1, bbox)); - auto resources = + sk_sp resources = get_gradient_resource_dict(luminosityShader.get(), nullptr); - auto alphaMask = SkPDFMakeFormXObject(std::move(alphaStream), - SkPDFUtils::RectToArray(bbox), - std::move(resources), - SkMatrix::I(), - "DeviceRGB"); + sk_sp alphaMask = + SkPDFMakeFormXObject(std::move(alphaStream), + SkPDFUtils::RectToArray(bbox), + std::move(resources), + SkMatrix::I(), + "DeviceRGB"); return SkPDFGraphicState::GetSMaskGraphicState( std::move(alphaMask), false, SkPDFGraphicState::kLuminosity_SMaskMode, doc->canon()); @@ -682,9 +683,9 @@ static sk_sp make_alpha_function_shader(SkPDFDocument* doc, // Create resource dict with alpha graphics state as G0 and // pattern shader as P0, then write content stream. - auto alphaGs = create_smask_graphic_state(doc, dpi, state); + sk_sp alphaGs = create_smask_graphic_state(doc, dpi, state); - auto resourceDict = + sk_sp resourceDict = get_gradient_resource_dict(colorShader.get(), alphaGs.get()); std::unique_ptr colorStream( -- 2.7.4