Lines Matching defs:paint

119         const SkPaint* paint, SaveFlags::Flags flags) {
171 refPaint(paint))) >= 0) {
187 refPaint(paint))) >= 0) {
254 void RecordingCanvas::drawPaint(const SkPaint& paint) {
257 drawRect(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom, paint);
270 void RecordingCanvas::drawPoints(const float* points, int floatCount, const SkPaint& paint) {
271 if (CC_UNLIKELY(floatCount < 2 || paint.nothingToDraw())) return;
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;
289 refPaint(&paint), refBuffer<float>(points, floatCount), floatCount));
292 void RecordingCanvas::drawRect(float left, float top, float right, float bottom, const SkPaint& paint) {
293 if (CC_UNLIKELY(paint.nothingToDraw())) return;
299 refPaint(&paint)));
302 void RecordingCanvas::drawSimpleRects(const float* rects, int vertexCount, const SkPaint* paint) {
332 refPaint(paint), rectData, vertexCount));
335 void RecordingCanvas::drawRegion(const SkRegion& region, const SkPaint& paint) {
336 if (CC_UNLIKELY(paint.nothingToDraw())) return;
338 if (paint.getStyle() == SkPaint::kFill_Style
339 && (!paint.isAntiAlias() || mState.currentTransform()->isSimple())) {
352 drawSimpleRects(rects.array(), count, &paint);
357 drawRect(r.fLeft, r.fTop, r.fRight, r.fBottom, paint);
364 float rx, float ry, const SkPaint& paint) {
365 if (CC_UNLIKELY(paint.nothingToDraw())) return;
372 refPaint(&paint), rx, ry));
374 drawRect(left, top, right, bottom, paint);
382 CanvasPropertyPaint* paint) {
389 mDisplayList->ref(paint);
390 refBitmapsInShader(paint->value.getShader());
394 &paint->value,
399 void RecordingCanvas::drawCircle(float x, float y, float radius, const SkPaint& paint) {
401 if (CC_UNLIKELY(radius <= 0 || paint.nothingToDraw())) return;
403 drawOval(x - radius, y - radius, x + radius, y + radius, paint);
408 CanvasPropertyPrimitive* radius, CanvasPropertyPaint* paint) {
412 mDisplayList->ref(paint);
413 refBitmapsInShader(paint->value.getShader());
417 &paint->value,
421 void RecordingCanvas::drawOval(float left, float top, float right, float bottom, const SkPaint& paint) {
422 if (CC_UNLIKELY(paint.nothingToDraw())) return;
428 refPaint(&paint)));
432 float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) {
433 if (CC_UNLIKELY(paint.nothingToDraw())) return;
436 drawOval(left, top, right, bottom, paint);
442 refPaint(&paint),
447 void RecordingCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
448 if (CC_UNLIKELY(paint.nothingToDraw())) return;
454 refPaint(&paint), refPath(&path)));
468 void RecordingCanvas::drawBitmap(Bitmap& bitmap, float left, float top, const SkPaint* paint) {
471 drawBitmap(bitmap, paint);
476 const SkPaint* paint) {
478 drawBitmap(bitmap, paint);
488 dst.fLeft, dst.fTop, dst.fRight, dst.fBottom, paint);
492 drawBitmap(bitmap, paint);
499 float dstRight, float dstBottom, const SkPaint* paint) {
508 drawBitmap(bitmap, paint);
515 refPaint(paint), refBitmap(bitmap),
521 const float* vertices, const int* colors, const SkPaint* paint) {
527 refPaint(paint), refBitmap(bitmap), meshWidth, meshHeight,
534 const SkPaint* paint) {
539 refPaint(paint), refBitmap(bitmap), refPatch(&patch)));
544 const SkPaint& paint, float x, float y, float boundsLeft, float boundsTop,
546 if (!glyphs || !positions || glyphCount <= 0 || paint.nothingToDraw()) return;
555 refPaint(&paint), glyphs, positions, glyphCount, x, y));
556 drawTextDecorations(x, y, totalAdvance, paint);
560 const SkPaint& paint, const SkPath& path, size_t start, size_t end) {
566 if (paint.nothingToDraw()) return;
571 refPaint(&paint), tempGlyphs, 1, refPath(&path), x, y));
575 void RecordingCanvas::drawBitmap(Bitmap& bitmap, const SkPaint* paint) {
580 refPaint(paint), refBitmap(bitmap)));
661 // If this paint has an SkShader that has an SkBitmap add