Lines Matching refs:paint
20 void CheckShader(SkPaint* paint) { in CheckShader() argument
21 SkShader* shader = paint->getShader(); in CheckShader()
38 paint->setShader(nullptr); in CheckShader()
41 void Filter(SkPaint* paint) { in Filter() argument
43 uint32_t flags = paint->getFlags(); in Filter()
45 paint->setFlags(flags); in Filter()
49 SkXfermode::AsMode(paint->getXfermode(), &mode); in Filter()
51 paint->setXfermode(nullptr); in Filter()
55 if (paint->getFilterQuality() != kNone_SkFilterQuality) { in Filter()
56 paint->setFilterQuality(kLow_SkFilterQuality); in Filter()
59 CheckShader(paint); in Filter()
63 SkColorFilter* cf = paint->getColorFilter(); in Filter()
70 paint->setColorFilter( in Filter()
73 paint->setColorFilter(nullptr); in Filter()
78 SkPathEffect* pe = paint->getPathEffect(); in Filter()
80 paint->setPathEffect(nullptr); in Filter()
87 paint->setImageFilter(nullptr); in Filter()
88 paint->setLooper(nullptr); in Filter()
110 void SkAndroidSDKCanvas::onDrawPaint(const SkPaint& paint) { in onDrawPaint() argument
111 FILTER(paint); in onDrawPaint()
117 const SkPaint& paint) { in onDrawPoints() argument
118 FILTER(paint); in onDrawPoints()
121 void SkAndroidSDKCanvas::onDrawOval(const SkRect& r, const SkPaint& paint) { in onDrawOval() argument
122 FILTER(paint); in onDrawOval()
125 void SkAndroidSDKCanvas::onDrawRect(const SkRect& r, const SkPaint& paint) { in onDrawRect() argument
126 FILTER(paint); in onDrawRect()
129 void SkAndroidSDKCanvas::onDrawRRect(const SkRRect& r, const SkPaint& paint) { in onDrawRRect() argument
130 FILTER(paint); in onDrawRRect()
133 void SkAndroidSDKCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { in onDrawPath() argument
134 FILTER(paint); in onDrawPath()
140 const SkPaint* paint) { in onDrawBitmap() argument
141 FILTER_PTR(paint); in onDrawBitmap()
147 const SkPaint* paint, in onDrawBitmapRect() argument
149 FILTER_PTR(paint); in onDrawBitmapRect()
155 const SkPaint* paint) { in onDrawBitmapNine() argument
156 FILTER_PTR(paint); in onDrawBitmapNine()
164 const SkPaint& paint) { in onDrawVertices() argument
165 FILTER(paint); in onDrawVertices()
172 const SkPaint& paint) { in onDrawDRRect() argument
173 FILTER(paint); in onDrawDRRect()
181 const SkPaint& paint) { in onDrawText() argument
182 FILTER(paint); in onDrawText()
188 const SkPaint& paint) { in onDrawPosText() argument
189 FILTER(paint); in onDrawPosText()
196 const SkPaint& paint) { in onDrawPosTextH() argument
197 FILTER(paint); in onDrawPosTextH()
204 const SkPaint& paint) { in onDrawTextOnPath() argument
205 FILTER(paint); in onDrawTextOnPath()
211 const SkPaint& paint) { in onDrawTextBlob() argument
212 FILTER(paint); in onDrawTextBlob()
220 const SkPaint& paint) { in onDrawPatch() argument
221 FILTER(paint); in onDrawPatch()
229 const SkPaint* paint) { in onDrawImage() argument
230 FILTER_PTR(paint); in onDrawImage()
237 const SkPaint* paint, in onDrawImageRect() argument
239 FILTER_PTR(paint); in onDrawImageRect()
245 const SkPaint* paint) { in onDrawPicture() argument
246 FILTER_PTR(paint); in onDrawPicture()
257 const SkPaint* paint) { in onDrawAtlas() argument
258 FILTER_PTR(paint); in onDrawAtlas()
266 const SkPaint* paint) { in onDrawImageNine() argument
267 FILTER_PTR(paint); in onDrawImageNine()