More SkISizification in GPU code.
Uses SkISize instead of separate width/height variables in many places.
No functional change.
Change-Id: If87b2c57e43d810f0820c4e3c9ef8e6b8ebd10ba
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/249886
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrPathRenderer.cpp b/src/gpu/GrPathRenderer.cpp
index 16d98db..d576b4c 100644
--- a/src/gpu/GrPathRenderer.cpp
+++ b/src/gpu/GrPathRenderer.cpp
@@ -81,13 +81,12 @@
SkDrawTreatAAStrokeAsHairline(stroke.getWidth(), matrix, outCoverage);
}
-
void GrPathRenderer::GetPathDevBounds(const SkPath& path,
- int devW, int devH,
+ SkISize devSize,
const SkMatrix& matrix,
SkRect* bounds) {
if (path.isInverseFillType()) {
- *bounds = SkRect::MakeWH(SkIntToScalar(devW), SkIntToScalar(devH));
+ *bounds = SkRect::Make(devSize);
return;
}
*bounds = path.getBounds();