remove unused clipRect for distance field
In the call insertSubRunOpsIntoTarget, the clipRect is always empty
for the distance field case.
Change-Id: Ib17eaae37a153c5b6aa473b2bf31d8b6c985e78f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/301257
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/ops/GrAtlasTextOp.cpp b/src/gpu/ops/GrAtlasTextOp.cpp
index 93aee41..a51c49b 100644
--- a/src/gpu/ops/GrAtlasTextOp.cpp
+++ b/src/gpu/ops/GrAtlasTextOp.cpp
@@ -133,8 +133,7 @@
const SkPaint& paint,
GrTextBlob::SubRun* subrun,
const SkMatrixProvider& matrixProvider,
- SkPoint drawOrigin,
- const SkIRect& clipRect) {
+ SkPoint drawOrigin) {
GrPaint grPaint;
GrRecordingContext* context = rtc->priv().getContext();
const GrColorInfo& colorInfo = rtc->colorInfo();
@@ -170,7 +169,7 @@
subrun,
drawMatrix,
drawOrigin,
- clipRect,
+ SkIRect::MakeEmpty(),
drawingColor,
SkPaintPriv::ComputeLuminanceColor(paint),
useGammaCorrectDistanceTable,