Lines Matching refs:paint

50                                     const SkPaint* paint, size_t bitmapSizeThreshold) {  in should_draw_immediately()  argument
60 if (paint) { in should_draw_immediately()
61 SkShader* shader = paint->getShader(); in should_draw_immediately()
195 void drawPaint(const SkDraw&, const SkPaint& paint) override in drawPaint() argument
199 const SkPaint& paint) override in drawPoints() argument
202 const SkPaint& paint) override in drawRect() argument
207 const SkPaint& paint) override in drawRRect() argument
210 const SkPaint& paint, in drawPath() argument
215 const SkMatrix& matrix, const SkPaint& paint) override in drawBitmap() argument
222 int x, int y, const SkPaint& paint) override in drawSprite() argument
230 SkScalar x, SkScalar y, const SkPaint& paint) override in drawText() argument
234 const SkPoint& offset, const SkPaint& paint) override in drawPosText() argument
239 const SkPaint& paint) override in drawTextOnPath() argument
245 int indexCount, const SkPaint& paint) override in drawVertices() argument
249 const SkPaint& paint) override in drawPatch() argument
507 const SkPaint* paint) { in AutoImmediateDrawIfNeeded() argument
508 this->init(canvas, bitmap, NULL, paint); in AutoImmediateDrawIfNeeded()
511 const SkPaint* paint) { in AutoImmediateDrawIfNeeded() argument
512 this->init(canvas, NULL, image, paint); in AutoImmediateDrawIfNeeded()
515 AutoImmediateDrawIfNeeded(SkDeferredCanvas& canvas, const SkPaint* paint) { in AutoImmediateDrawIfNeeded() argument
516 this->init(canvas, NULL, NULL, paint); in AutoImmediateDrawIfNeeded()
526 const SkPaint* paint) { in init() argument
528 should_draw_immediately(bitmap, image, paint, canvas.getBitmapSizeThreshold())) { in init()
668 const SkPaint* paint) const { in isFullFrame()
679 if (paint) { in isFullFrame()
680 SkPaint::Style paintStyle = paint->getStyle(); in isFullFrame()
685 if (paint->getMaskFilter() || paint->getLooper() in isFullFrame()
686 || paint->getPathEffect() || paint->getImageFilter()) { in isFullFrame()
713 const SkPaint* paint, SaveFlags flags) { in willSaveLayer() argument
719 this->drawingCanvas()->saveLayer(bounds, paint, flags); in willSaveLayer()
721 this->INHERITED::willSaveLayer(bounds, paint, flags); in willSaveLayer()
780 void SkDeferredCanvas::onDrawPaint(const SkPaint& paint) { in onDrawPaint() argument
781 if (fDeferredDrawing && this->isFullFrame(NULL, &paint) && in onDrawPaint()
782 isPaintOpaque(&paint)) { in onDrawPaint()
785 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawPaint()
786 this->drawingCanvas()->drawPaint(paint); in onDrawPaint()
791 const SkPoint pts[], const SkPaint& paint) { in onDrawPoints() argument
792 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawPoints()
793 this->drawingCanvas()->drawPoints(mode, count, pts, paint); in onDrawPoints()
797 void SkDeferredCanvas::onDrawOval(const SkRect& rect, const SkPaint& paint) { in onDrawOval() argument
798 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawOval()
799 this->drawingCanvas()->drawOval(rect, paint); in onDrawOval()
803 void SkDeferredCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) { in onDrawRect() argument
804 if (fDeferredDrawing && this->isFullFrame(&rect, &paint) && in onDrawRect()
805 isPaintOpaque(&paint)) { in onDrawRect()
809 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawRect()
810 this->drawingCanvas()->drawRect(rect, paint); in onDrawRect()
814 void SkDeferredCanvas::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) { in onDrawRRect() argument
816 this->SkDeferredCanvas::drawRect(rrect.getBounds(), paint); in onDrawRRect()
818 this->SkDeferredCanvas::drawOval(rrect.getBounds(), paint); in onDrawRRect()
820 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawRRect()
821 this->drawingCanvas()->drawRRect(rrect, paint); in onDrawRRect()
827 const SkPaint& paint) { in onDrawDRRect() argument
828 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawDRRect()
829 this->drawingCanvas()->drawDRRect(outer, inner, paint); in onDrawDRRect()
833 void SkDeferredCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { in onDrawPath() argument
834 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawPath()
835 this->drawingCanvas()->drawPath(path, paint); in onDrawPath()
840 SkScalar top, const SkPaint* paint) { in onDrawBitmap() argument
844 this->isFullFrame(&bitmapRect, paint) && in onDrawBitmap()
845 isPaintOpaque(paint, &bitmap)) { in onDrawBitmap()
849 AutoImmediateDrawIfNeeded autoDraw(*this, &bitmap, paint); in onDrawBitmap()
850 this->drawingCanvas()->drawBitmap(bitmap, left, top, paint); in onDrawBitmap()
856 const SkPaint* paint, DrawBitmapRectFlags flags) { in onDrawBitmapRect() argument
858 this->isFullFrame(&dst, paint) && in onDrawBitmapRect()
859 isPaintOpaque(paint, &bitmap)) { in onDrawBitmapRect()
863 AutoImmediateDrawIfNeeded autoDraw(*this, &bitmap, paint); in onDrawBitmapRect()
864 this->drawingCanvas()->drawBitmapRectToRect(bitmap, src, dst, paint, flags); in onDrawBitmapRect()
870 const SkPaint* paint) { in onDrawImage() argument
874 this->isFullFrame(&bounds, paint) && in onDrawImage()
875 isPaintOpaque(paint, image)) { in onDrawImage()
879 AutoImmediateDrawIfNeeded autoDraw(*this, image, paint); in onDrawImage()
880 this->drawingCanvas()->drawImage(image, x, y, paint); in onDrawImage()
884 const SkPaint* paint) { in onDrawImageRect() argument
886 this->isFullFrame(&dst, paint) && in onDrawImageRect()
887 isPaintOpaque(paint, image)) { in onDrawImageRect()
891 AutoImmediateDrawIfNeeded autoDraw(*this, image, paint); in onDrawImageRect()
892 this->drawingCanvas()->drawImageRect(image, src, dst, paint); in onDrawImageRect()
898 const SkPaint* paint) { in onDrawBitmapNine() argument
901 AutoImmediateDrawIfNeeded autoDraw(*this, &bitmap, paint); in onDrawBitmapNine()
902 this->drawingCanvas()->drawBitmapNine(bitmap, center, dst, paint); in onDrawBitmapNine()
907 const SkPaint* paint) { in onDrawSprite() argument
914 this->isFullFrame(&bitmapRect, paint) && in onDrawSprite()
915 isPaintOpaque(paint, &bitmap)) { in onDrawSprite()
919 AutoImmediateDrawIfNeeded autoDraw(*this, &bitmap, paint); in onDrawSprite()
920 this->drawingCanvas()->drawSprite(bitmap, left, top, paint); in onDrawSprite()
925 const SkPaint& paint) { in onDrawText() argument
926 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawText()
927 this->drawingCanvas()->drawText(text, byteLength, x, y, paint); in onDrawText()
932 const SkPaint& paint) { in onDrawPosText() argument
933 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawPosText()
934 this->drawingCanvas()->drawPosText(text, byteLength, pos, paint); in onDrawPosText()
939 SkScalar constY, const SkPaint& paint) { in onDrawPosTextH() argument
940 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawPosTextH()
941 this->drawingCanvas()->drawPosTextH(text, byteLength, xpos, constY, paint); in onDrawPosTextH()
946 const SkMatrix* matrix, const SkPaint& paint) { in onDrawTextOnPath() argument
947 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawTextOnPath()
948 this->drawingCanvas()->drawTextOnPath(text, byteLength, path, matrix, paint); in onDrawTextOnPath()
953 const SkPaint& paint) { in onDrawTextBlob() argument
954 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawTextBlob()
955 this->drawingCanvas()->drawTextBlob(blob, x, y, paint); in onDrawTextBlob()
960 const SkPaint* paint) { in onDrawPicture() argument
961 this->drawingCanvas()->drawPicture(picture, matrix, paint); in onDrawPicture()
970 const SkPaint& paint) { in onDrawVertices() argument
971 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawVertices()
973 indices, indexCount, paint); in onDrawVertices()
979 const SkPaint& paint) { in onDrawPatch() argument
980 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); in onDrawPatch()
981 this->drawingCanvas()->drawPatch(cubics, colors, texCoords, xmode, paint); in onDrawPatch()