Lines Matching refs:geometry
65 * vec2f : position in device space of the bounding geometry vertices
650 struct Geometry {
659 static GrBatch* Create(const Geometry& geometry) { return SkNEW_ARGS(CircleBatch, (geometry)); }
664 // When this is called on a batch, there is only one geometry bundle
694 // Setup geometry processor
722 Geometry& geom = fGeoData[i];
756 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; }
759 CircleBatch(const Geometry& geometry) {
761 fGeoData.push_back(geometry);
763 this->setBounds(geometry.fDevBounds);
802 SkSTArray<1, Geometry, true> fGeoData;
843 CircleBatch::Geometry geometry;
844 geometry.fViewMatrix = viewMatrix;
845 geometry.fColor = color;
846 geometry.fInnerRadius = innerRadius;
847 geometry.fOuterRadius = outerRadius;
848 geometry.fStroke = isStrokeOnly && innerRadius > 0;
849 geometry.fDevBounds = SkRect::MakeLTRB(center.fX - outerRadius, center.fY - outerRadius,
852 return CircleBatch::Create(geometry);
871 struct Geometry {
882 static GrBatch* Create(const Geometry& geometry) {
883 return SkNEW_ARGS(EllipseBatch, (geometry));
889 // When this is called on a batch, there is only one geometry bundle
918 // Setup geometry processor
946 Geometry& geom = fGeoData[i];
985 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; }
988 EllipseBatch(const Geometry& geometry) {
990 fGeoData.push_back(geometry);
992 this->setBounds(geometry.fDevBounds);
1031 SkSTArray<1, Geometry, true> fGeoData;
1107 EllipseBatch::Geometry geometry;
1108 geometry.fViewMatrix = viewMatrix;
1109 geometry.fColor = color;
1110 geometry.fXRadius = xRadius;
1111 geometry.fYRadius = yRadius;
1112 geometry.fInnerXRadius = innerXRadius;
1113 geometry.fInnerYRadius = innerYRadius;
1114 geometry.fStroke = isStrokeOnly && innerXRadius > 0 && innerYRadius > 0;
1115 geometry.fDevBounds = SkRect::MakeLTRB(center.fX - xRadius, center.fY - yRadius,
1118 return EllipseBatch::Create(geometry);
1142 struct Geometry {
1155 static GrBatch* Create(const Geometry& geometry, const SkRect& bounds) {
1156 return SkNEW_ARGS(DIEllipseBatch, (geometry, bounds));
1162 // When this is called on a batch, there is only one geometry bundle
1186 // Setup geometry processor
1214 Geometry& geom = fGeoData[i];
1249 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; }
1252 DIEllipseBatch(const Geometry& geometry, const SkRect& bounds) {
1254 fGeoData.push_back(geometry);
1295 SkSTArray<1, Geometry, true> fGeoData;
1358 DIEllipseBatch::Geometry geometry;
1359 geometry.fViewMatrix = viewMatrix;
1360 geometry.fColor = color;
1361 geometry.fXRadius = xRadius;
1362 geometry.fYRadius = yRadius;
1363 geometry.fInnerXRadius = innerXRadius;
1364 geometry.fInnerYRadius = innerYRadius;
1365 geometry.fGeoDx = geoDx;
1366 geometry.fGeoDy = geoDy;
1367 geometry.fMode = mode;
1368 geometry.fBounds = SkRect::MakeLTRB(center.fX - xRadius - geoDx, center.fY - yRadius - geoDy,
1371 SkRect devBounds = geometry.fBounds;
1373 return DIEllipseBatch::Create(geometry, devBounds);
1455 // TODO this needs to be a geometry processor
1504 struct Geometry {
1513 static GrBatch* Create(const Geometry& geometry) {
1514 return SkNEW_ARGS(RRectCircleRendererBatch, (geometry));
1520 // When this is called on a batch, there is only one geometry bundle
1551 // Setup geometry processor
1587 Geometry& args = fGeoData[i];
1633 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; }
1636 RRectCircleRendererBatch(const Geometry& geometry) {
1638 fGeoData.push_back(geometry);
1640 this->setBounds(geometry.fDevBounds);
1679 SkSTArray<1, Geometry, true> fGeoData;
1684 struct Geometry {
1695 static GrBatch* Create(const Geometry& geometry) {
1696 return SkNEW_ARGS(RRectEllipseRendererBatch, (geometry));
1702 // When this is called on a batch, there is only one geometry bundle
1733 // Setup geometry processor
1769 Geometry& args = fGeoData[i];
1825 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; }
1828 RRectEllipseRendererBatch(const Geometry& geometry) {
1830 fGeoData.push_back(geometry);
1832 this->setBounds(geometry.fDevBounds);
1871 SkSTArray<1, Geometry, true> fGeoData;
1961 RRectCircleRendererBatch::Geometry geometry;
1962 geometry.fViewMatrix = viewMatrix;
1963 geometry.fColor = color;
1964 geometry.fInnerRadius = innerRadius;
1965 geometry.fOuterRadius = outerRadius;
1966 geometry.fStroke = isStrokeOnly;
1967 geometry.fDevBounds = bounds;
1969 return RRectCircleRendererBatch::Create(geometry);
2009 RRectEllipseRendererBatch::Geometry geometry;
2010 geometry.fViewMatrix = viewMatrix;
2011 geometry.fColor = color;
2012 geometry.fXRadius = xRadius;
2013 geometry.fYRadius = yRadius;
2014 geometry.fInnerXRadius = innerXRadius;
2015 geometry.fInnerYRadius = innerYRadius;
2016 geometry.fStroke = isStrokeOnly;
2017 geometry.fDevBounds = bounds;
2019 return RRectEllipseRendererBatch::Create(geometry);