Lines Matching defs:paint

131         const SkPaint* paint, SaveFlags::Flags flags) {
135 paint = refPaint(paint);
136 addStateOp(new (alloc()) SaveLayerOp(left, top, right, bottom, paint, (int) flags));
229 void DisplayListCanvas::drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) {
231 paint = refPaint(paint);
233 addDrawOp(new (alloc()) DrawBitmapOp(bitmap, paint));
237 const SkPaint* paint) {
240 drawBitmap(&bitmap, paint);
245 const SkPaint* paint) {
247 drawBitmap(&bitmap, paint);
257 dst.fLeft, dst.fTop, dst.fRight, dst.fBottom, paint);
261 drawBitmap(&bitmap, paint);
268 float dstRight, float dstBottom, const SkPaint* paint) {
277 drawBitmap(&bitmap, paint);
280 paint = refPaint(paint);
282 if (paint && paint->getShader()) {
300 dstLeft, dstTop, dstRight, dstBottom, paint));
308 dstLeft, dstTop, dstRight, dstBottom, paint));
313 const float* vertices, const int* colors, const SkPaint* paint) {
316 paint = refPaint(paint);
320 vertices, colors, paint));
324 float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) {
327 paint = refPaint(paint);
330 dstLeft, dstTop, dstRight, dstBottom, paint));
337 void DisplayListCanvas::drawPaint(const SkPaint& paint) {
340 drawRect(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom, paint);
346 const SkPaint& paint) {
347 addDrawOp(new (alloc()) DrawRectOp(left, top, right, bottom, refPaint(&paint)));
351 float rx, float ry, const SkPaint& paint) {
352 addDrawOp(new (alloc()) DrawRoundRectOp(left, top, right, bottom, rx, ry, refPaint(&paint)));
359 CanvasPropertyPaint* paint) {
366 mDisplayList->ref(paint);
367 refBitmapsInShader(paint->value.getShader());
369 &right->value, &bottom->value, &rx->value, &ry->value, &paint->value));
372 void DisplayListCanvas::drawCircle(float x, float y, float radius, const SkPaint& paint) {
373 addDrawOp(new (alloc()) DrawCircleOp(x, y, radius, refPaint(&paint)));
377 CanvasPropertyPrimitive* radius, CanvasPropertyPaint* paint) {
381 mDisplayList->ref(paint);
382 refBitmapsInShader(paint->value.getShader());
384 &radius->value, &paint->value));
388 const SkPaint& paint) {
389 addDrawOp(new (alloc()) DrawOvalOp(left, top, right, bottom, refPaint(&paint)));
393 float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) {
395 drawOval(left, top, right, bottom, paint);
398 startAngle, sweepAngle, useCenter, refPaint(&paint)));
402 void DisplayListCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
403 addDrawOp(new (alloc()) DrawPathOp(refPath(&path), refPaint(&paint)));
406 void DisplayListCanvas::drawLines(const float* points, int count, const SkPaint& paint) {
409 addDrawOp(new (alloc()) DrawLinesOp(points, count, refPaint(&paint)));
412 void DisplayListCanvas::drawPoints(const float* points, int count, const SkPaint& paint) {
415 addDrawOp(new (alloc()) DrawPointsOp(points, count, refPaint(&paint)));
425 const SkPath& path, float hOffset, float vOffset, const SkPaint& paint) {
431 hOffset, vOffset, refPaint(&paint));
436 int count, const SkPaint& paint, float x, float y,
440 if (!glyphs || count <= 0 || PaintUtils::paintWillNotDrawText(paint)) return;
447 x, y, positions, refPaint(&paint), totalAdvance, bounds);
449 drawTextDecorations(x, y, totalAdvance, paint);
452 void DisplayListCanvas::drawRegion(const SkRegion& region, const SkPaint& paint) {
453 if (paint.getStyle() != SkPaint::kFill_Style ||
454 (paint.isAntiAlias() && !mState.currentTransform()->isSimple())) {
458 drawRect(r.fLeft, r.fTop, r.fRight, r.fBottom, paint);
474 drawRects(rects.array(), count, &paint);
478 void DisplayListCanvas::drawRects(const float* rects, int count, const SkPaint* paint) {
482 paint = refPaint(paint);
483 addDrawOp(new (alloc()) DrawRectsOp(rects, count, paint));
580 // If this paint has an SkShader that has an SkBitmap add