Lines Matching refs:grPaint
429 // converts a SkPaint to a GrPaint, ignoring the skPaint's shader
431 // Callers may subsequently modify the GrPaint. Setting constantColor indicates
434 // color once while converting to GrPaint and then ignored.
439 GrPaint* grPaint) {
441 grPaint->setDither(skPaint.isDither());
442 grPaint->setAntiAlias(skPaint.isAntiAlias());
451 grPaint->addColorEffect(xferEffect)->unref();
465 grPaint->setBlendFunc(sk_blend_to_grblend(sm), sk_blend_to_grblend(dm));
469 grPaint->setColor(GrColorPackRGBA(alpha, alpha, alpha, alpha));
474 grPaint->setColor(SkColor2GrColor(skPaint.getColor()));
483 grPaint->setColor(SkColor2GrColor(filtered));
487 grPaint->addColorEffect(effect);
497 // be used is set on grPaint and returned in param act. constantColor has the
502 GrPaint* grPaint) {
505 return skPaint2GrPaintNoShader(dev, skPaint, false, constantColor, grPaint);
516 grPaint->addColorEffect(effect);
518 return skPaint2GrPaintNoShader(dev, skPaint, true, false, grPaint);
533 return skPaint2GrPaintNoShader(dev, copy, false, constantColor, grPaint);
561 GrPaint grPaint;
562 if (!skPaint2GrPaintShader(this, paint, true, &grPaint)) {
566 fContext->drawPaint(grPaint);
593 GrPaint grPaint;
594 if (!skPaint2GrPaintShader(this, paint, true, &grPaint)) {
598 fContext->drawVertices(grPaint,
652 GrPaint grPaint;
653 if (!skPaint2GrPaintShader(this, paint, true, &grPaint)) {
658 fContext->drawRect(grPaint, rect);
661 fContext->drawRect(grPaint, rect, &stroke);
689 GrPaint grPaint;
690 if (!skPaint2GrPaintShader(this, paint, true, &grPaint)) {
695 fContext->drawRRect(grPaint, rect, stroke);
718 GrPaint grPaint;
719 if (!skPaint2GrPaintShader(this, paint, true, &grPaint)) {
724 fContext->drawOval(grPaint, oval, stroke);
739 GrPaint* grp, GrTexture* mask) {
756 GrPaint* grp, SkPaint::Style style) {
779 // the current clip (and identity matrix) and GrPaint settings
831 GrPaint tempPaint;
871 GrPaint grPaint;
872 if (!skPaint2GrPaintShader(this, paint, true, &grPaint)) {
939 grPaint.isAntiAlias(), &mask)) {
954 if (draw_mask(fContext, maskRect, &grPaint, filtered)) {
967 *draw.fClip, draw.fBounder, &grPaint, style);
971 fContext->drawPath(grPaint, *pathPtr, stroke);
1366 * and that non-texture portion of the GrPaint has already been setup.
1448 // Construct a GrPaint by setting the bitmap texture as the first effect and then configuring
1450 GrPaint grPaint;
1451 grPaint.addColorEffect(effect);
1453 if (!skPaint2GrPaintNoShader(this, paint, alphaOnly, false, &grPaint)) {
1457 fContext->drawRectToRect(grPaint, dstRect, paintRect, NULL);
1512 GrPaint grPaint;
1513 grPaint.addColorTextureEffect(texture, SkMatrix::I());
1515 if(!skPaint2GrPaintNoShader(this, paint, true, false, &grPaint)) {
1519 fContext->drawRectToRect(grPaint,
1603 GrPaint grPaint;
1604 grPaint.addColorTextureEffect(devTex, SkMatrix::I());
1606 if (!skPaint2GrPaintNoShader(this, paint, true, false, &grPaint)) {
1620 fContext->drawRectToRect(grPaint, dstRect, srcRect);
1666 GrPaint grPaint;
1669 if (!skPaint2GrPaintNoShader(this, paint, false, NULL == colors, &grPaint)) {
1673 if (!skPaint2GrPaintShader(this, paint, NULL == colors, &grPaint)) {
1696 fContext->drawVertices(grPaint,
1774 GrPaint grPaint;
1775 if (!skPaint2GrPaintShader(this, paint, true, &grPaint)) {
1781 GrBitmapTextContext context(fContext, grPaint, paint.getColor());
1786 GrDistanceFieldTextContext context(fContext, grPaint, paint.getColor(),
1811 GrPaint grPaint;
1812 if (!skPaint2GrPaintShader(this, paint, true, &grPaint)) {
1818 GrBitmapTextContext context(fContext, grPaint, paint.getColor());
1824 GrDistanceFieldTextContext context(fContext, grPaint, paint.getColor(),