commit | 8cce8f139e4b91783722f11ccb6ac9bbdf8327e7 | [log] [tgz] |
---|---|---|
author | joshualitt <joshualitt@chromium.org> | Wed Aug 26 06:23:39 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Aug 26 06:23:39 2015 -0700 |
tree | f3eabe2e096bb62430a7c3ddb847f4db68739964 | |
parent | 002c2ce66be69d41632c9603ce62c50f04156518 [diff] [blame] |
Modify GrBWFillRectBatch to use GrQuad BUG=skia: Committed: https://skia.googlesource.com/skia/+/c611b5afbef6df6c02e949fdf092aab2bb7e0e2e Review URL: https://codereview.chromium.org/1311793002
diff --git a/src/gpu/GrQuad.h b/src/gpu/GrQuad.h index fc169ea..9a8d1f3 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 @@ return fPoints; } + const SkPoint& point(int i) const { + SkASSERT(i < kNumPoints); + return fPoints[i]; + } + private: static const int kNumPoints = 4; SkPoint fPoints[kNumPoints];