Lines Matching refs:paint

82             const SkPaint* paint, int flags);
112 virtual status_t drawBitmap(const SkBitmap* bitmap, const SkPaint* paint);
115 float dstRight, float dstBottom, const SkPaint* paint);
116 virtual status_t drawBitmapData(const SkBitmap* bitmap, const SkPaint* paint);
118 const float* vertices, const int* colors, const SkPaint* paint);
120 float left, float top, float right, float bottom, const SkPaint* paint);
124 const SkPaint* paint);
125 virtual status_t drawRects(const float* rects, int count, const SkPaint* paint);
127 float rx, float ry, const SkPaint* paint);
131 CanvasPropertyPaint* paint);
132 virtual status_t drawCircle(float x, float y, float radius, const SkPaint* paint);
134 CanvasPropertyPrimitive* radius, CanvasPropertyPaint* paint);
136 const SkPaint* paint);
138 float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint);
139 virtual status_t drawPath(const SkPath* path, const SkPaint* paint);
140 virtual status_t drawLines(const float* points, int count, const SkPaint* paint);
141 virtual status_t drawPoints(const float* points, int count, const SkPaint* paint);
145 const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds,
148 float hOffset, float vOffset, const SkPaint* paint);
150 const float* positions, const SkPaint* paint);
220 inline const SkPaint* refPaint(const SkPaint* paint) {
221 if (!paint) return NULL;
223 const SkPaint* paintCopy = mPaintMap.valueFor(paint);
225 || paintCopy->getGenerationID() != paint->getGenerationID()
228 // shader changes the paint generationID will have changed and
230 || !(paint->getShader() && paintCopy->getShader()
231 && paint->getShader()->getGenerationID() == paintCopy->getShader()->getGenerationID())) {
232 paintCopy = copyPaint(paint);
234 mPaintMap.replaceValueFor(paint, paintCopy);
240 inline SkPaint* copyPaint(const SkPaint* paint) {
241 if (!paint) return NULL;
242 SkPaint* paintCopy = new SkPaint(*paint);
243 if (paint->getShader()) {
245 paint->getShader(), paint->getShader()->getLocalMatrix());
247 paintCopy->setGenerationID(paint->getGenerationID());
248 shaderCopy->setGenerationID(paint->getShader()->getGenerationID());