Add bounding rect for paths
Review URL: http://codereview.appspot.com/4442094/
git-svn-id: http://skia.googlecode.com/svn/trunk@1205 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrPathIter.h b/gpu/include/GrPathIter.h
index 55427c0..5261f0f 100644
--- a/gpu/include/GrPathIter.h
+++ b/gpu/include/GrPathIter.h
@@ -21,6 +21,7 @@
#include "GrTypes.h"
struct GrPoint;
+struct GrRect;
/**
2D Path iterator. Porting layer creates a subclass of this. It allows Ganesh to
@@ -60,6 +61,12 @@
*/
virtual GrPathCmd next() = 0;
+ /**
+ * Returns conservative bounds on the path points. If returns false then
+ * no bounds are available.
+ */
+ virtual bool getConservativeBounds(GrRect* rect) const = 0;
+
/**
Restarts iteration from the beginning.
*/