Lines Matching defs:floatCount
261 static Rect calcBoundsOfPoints(const float* points, int floatCount) {
263 for (int i = 2; i < floatCount; i += 2) {
270 void RecordingCanvas::drawPoints(const float* points, int floatCount, const SkPaint& paint) {
271 if (CC_UNLIKELY(floatCount < 2 || paint.nothingToDraw())) return;
272 floatCount &= ~0x1; // round down to nearest two
275 calcBoundsOfPoints(points, floatCount),
278 refPaint(&paint), refBuffer<float>(points, floatCount), floatCount));
281 void RecordingCanvas::drawLines(const float* points, int floatCount, const SkPaint& paint) {
282 if (CC_UNLIKELY(floatCount < 4 || paint.nothingToDraw())) return;
283 floatCount &= ~0x3; // round down to nearest four
286 calcBoundsOfPoints(points, floatCount),
289 refPaint(&paint), refBuffer<float>(points, floatCount), floatCount));