Index: src/gpu/GrQuad.h |
diff --git a/src/gpu/GrQuad.h b/src/gpu/GrQuad.h |
index fc169ead6d2b56daebf2518b520e9354c4165402..9a8d1f3a4a37a1d421b83ceb52700ce593a0391d 100644 |
--- a/src/gpu/GrQuad.h |
+++ b/src/gpu/GrQuad.h |
@@ -16,6 +16,8 @@ |
*/ |
class GrQuad { |
public: |
+ GrQuad() {} |
+ |
GrQuad(const GrQuad& that) { |
*this = that; |
} |
@@ -50,6 +52,11 @@ public: |
return fPoints; |
} |
+ const SkPoint& point(int i) const { |
+ SkASSERT(i < kNumPoints); |
+ return fPoints[i]; |
+ } |
+ |
private: |
static const int kNumPoints = 4; |
SkPoint fPoints[kNumPoints]; |