Lines Matching refs:paint
18 void CheckShader(SkPaint* paint) { in CheckShader() argument
19 SkShader* shader = paint->getShader(); in CheckShader()
36 paint->setShader(NULL); in CheckShader()
39 void Filter(SkPaint* paint) { in Filter() argument
41 uint32_t flags = paint->getFlags(); in Filter()
43 paint->setFlags(flags); in Filter()
47 SkXfermode::AsMode(paint->getXfermode(), &mode); in Filter()
49 paint->setXfermode(NULL); in Filter()
53 if (paint->getFilterQuality() != kNone_SkFilterQuality) { in Filter()
54 paint->setFilterQuality(kLow_SkFilterQuality); in Filter()
57 CheckShader(paint); in Filter()
61 SkColorFilter* cf = paint->getColorFilter(); in Filter()
68 paint->setColorFilter( in Filter()
71 paint->setColorFilter(NULL); in Filter()
76 SkPathEffect* pe = paint->getPathEffect(); in Filter()
78 paint->setPathEffect(NULL); in Filter()
85 paint->setImageFilter(NULL); in Filter()
86 paint->setLooper(NULL); in Filter()
108 void SkAndroidSDKCanvas::onDrawPaint(const SkPaint& paint) { in onDrawPaint() argument
109 FILTER(paint); in onDrawPaint()
115 const SkPaint& paint) { in onDrawPoints() argument
116 FILTER(paint); in onDrawPoints()
119 void SkAndroidSDKCanvas::onDrawOval(const SkRect& r, const SkPaint& paint) { in onDrawOval() argument
120 FILTER(paint); in onDrawOval()
123 void SkAndroidSDKCanvas::onDrawRect(const SkRect& r, const SkPaint& paint) { in onDrawRect() argument
124 FILTER(paint); in onDrawRect()
127 void SkAndroidSDKCanvas::onDrawRRect(const SkRRect& r, const SkPaint& paint) { in onDrawRRect() argument
128 FILTER(paint); in onDrawRRect()
131 void SkAndroidSDKCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { in onDrawPath() argument
132 FILTER(paint); in onDrawPath()
138 const SkPaint* paint) { in onDrawBitmap() argument
139 FILTER_PTR(paint); in onDrawBitmap()
145 const SkPaint* paint, in onDrawBitmapRect() argument
147 FILTER_PTR(paint); in onDrawBitmapRect()
153 const SkPaint* paint) { in onDrawBitmapNine() argument
154 FILTER_PTR(paint); in onDrawBitmapNine()
160 const SkPaint* paint) { in onDrawSprite() argument
161 FILTER_PTR(paint); in onDrawSprite()
169 const SkPaint& paint) { in onDrawVertices() argument
170 FILTER(paint); in onDrawVertices()
177 const SkPaint& paint) { in onDrawDRRect() argument
178 FILTER(paint); in onDrawDRRect()
186 const SkPaint& paint) { in onDrawText() argument
187 FILTER(paint); in onDrawText()
193 const SkPaint& paint) { in onDrawPosText() argument
194 FILTER(paint); in onDrawPosText()
201 const SkPaint& paint) { in onDrawPosTextH() argument
202 FILTER(paint); in onDrawPosTextH()
209 const SkPaint& paint) { in onDrawTextOnPath() argument
210 FILTER(paint); in onDrawTextOnPath()
216 const SkPaint& paint) { in onDrawTextBlob() argument
217 FILTER(paint); in onDrawTextBlob()
225 const SkPaint& paint) { in onDrawPatch() argument
226 FILTER(paint); in onDrawPatch()
234 const SkPaint* paint) { in onDrawImage() argument
235 FILTER_PTR(paint); in onDrawImage()
242 const SkPaint* paint) { in onDrawImageRect() argument
243 FILTER_PTR(paint); in onDrawImageRect()
249 const SkPaint* paint) { in onDrawPicture() argument
250 FILTER_PTR(paint); in onDrawPicture()
289 const SkPaint* paint, in willSaveLayer() argument
291 fProxyTarget->saveLayer(rect, paint, flags); in willSaveLayer()