1cb93a386Sopenharmony_ci/* 2cb93a386Sopenharmony_ci * Copyright 2021 Google LLC 3cb93a386Sopenharmony_ci * 4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be 5cb93a386Sopenharmony_ci * found in the LICENSE file. 6cb93a386Sopenharmony_ci */ 7cb93a386Sopenharmony_ci 8cb93a386Sopenharmony_ci#include "src/gpu/SurfaceFillContext.h" 9cb93a386Sopenharmony_ci 10cb93a386Sopenharmony_ci#include "src/gpu/effects/GrMatrixEffect.h" 11cb93a386Sopenharmony_ci 12cb93a386Sopenharmony_cinamespace skgpu { 13cb93a386Sopenharmony_ci 14cb93a386Sopenharmony_civoid SurfaceFillContext::fillRectWithFP(const SkIRect& dstRect, 15cb93a386Sopenharmony_ci const SkMatrix& localMatrix, 16cb93a386Sopenharmony_ci std::unique_ptr<GrFragmentProcessor> fp) { 17cb93a386Sopenharmony_ci fp = GrMatrixEffect::Make(localMatrix, std::move(fp)); 18cb93a386Sopenharmony_ci this->fillRectWithFP(dstRect, std::move(fp)); 19cb93a386Sopenharmony_ci} 20cb93a386Sopenharmony_ci 21cb93a386Sopenharmony_ci} // namespace skgpu 22