Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(686)

Unified Diff: src/gpu/GrQuad.h

Issue 1311793002: Modify GrBWFillRectBatch to use GrQuad (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/batches/GrBWFillRectBatch.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
« no previous file with comments | « no previous file | src/gpu/batches/GrBWFillRectBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698