Index: src/gpu/GrRectanizer.cpp |
diff --git a/src/gpu/GrRectanizer.cpp b/src/gpu/GrRectanizer.cpp |
index 7b49530366796cabfe6fafe0c96493b6987adaf5..418bf196bca73baf09c8e2f21b2b7bddd8f6450c 100644 |
--- a/src/gpu/GrRectanizer.cpp |
+++ b/src/gpu/GrRectanizer.cpp |
@@ -24,6 +24,12 @@ public: |
virtual ~GrRectanizerPow2() { |
} |
+ virtual void reset() { |
+ fNextStripY = 0; |
+ fAreaSoFar = 0; |
+ sk_bzero(fRows, sizeof(fRows)); |
+ } |
+ |
virtual bool addRect(int w, int h, GrIPoint16* loc); |
virtual float percentFull() const { |