Index: src/gpu/GrPathRenderer.cpp |
diff --git a/src/gpu/GrPathRenderer.cpp b/src/gpu/GrPathRenderer.cpp |
index e0d2682bcd379b33b5a31c721474279b8faf915b..e88db22b30d7958b15ae9d5fa21edad1bacb03cc 100644 |
--- a/src/gpu/GrPathRenderer.cpp |
+++ b/src/gpu/GrPathRenderer.cpp |
@@ -12,3 +12,15 @@ SK_DEFINE_INST_COUNT(GrPathRenderer) |
GrPathRenderer::GrPathRenderer() { |
} |
+ |
+void GrPathRenderer::GetPathDevBounds(const SkPath& path, |
+ int devW, int devH, |
+ const SkMatrix& matrix, |
+ SkRect* bounds) { |
+ if (path.isInverseFillType()) { |
+ *bounds = SkRect::MakeWH(SkIntToScalar(devW), SkIntToScalar(devH)); |
+ return; |
+ } |
+ *bounds = path.getBounds(); |
+ matrix.mapRect(bounds); |
+} |