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