blob: eab314dfae479ea3b9c7fe295f79f11d3bb6c99c [file] [log] [blame]
Robert Phillipsf3868622021-08-04 13:27:43 -04001/*
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
12namespace skgpu {
13
14void 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