Home
last modified time | relevance | path

Searched refs:paint (Results 526 - 550 of 1341) sorted by relevance

1...<<21222324252627282930>>...54

/third_party/skia/docs/examples/
H A DPaint_setFlags.cpp8 SkPaint paint; in REG_FIDDLE() local
9 paint.setFlags((uint32_t) (SkPaint::kAntiAlias_Flag | SkPaint::kDither_Flag)); in REG_FIDDLE()
10 SkDebugf("paint.isAntiAlias()\n", paint.isAntiAlias() ? '!' : '='); in REG_FIDDLE()
11 SkDebugf("paint.isDither()\n", paint.isDither() ? '!' : '='); in REG_FIDDLE()
H A DPaint_isAutohinted.cpp8 SkPaint paint; in REG_FIDDLE() local
10 paint.setAutohinted(forceAutoHinting); in REG_FIDDLE()
11 SkDebugf("paint.isAutohinted() %c=" in REG_FIDDLE()
12 " !!(paint.getFlags() & SkPaint::kAutoHinting_Flag)\n", in REG_FIDDLE()
13 paint.isAutohinted() == in REG_FIDDLE()
14 !!(paint.getFlags() & SkPaint::kAutoHinting_Flag) ? '=' : '!'); in REG_FIDDLE()
H A DPaint_getTypeface.cpp8 SkPaint paint; in REG_FIDDLE() local
9 SkDebugf("nullptr %c= typeface\n", paint.getTypeface() ? '!' : '='); in REG_FIDDLE()
10 paint.setTypeface(SkTypeface::MakeFromName("monospace", SkFontStyle())); in REG_FIDDLE()
11 SkDebugf("nullptr %c= typeface\n", paint.getTypeface() ? '!' : '='); in REG_FIDDLE()
H A DPaint_getColorFilter.cpp7 SkPaint paint; in REG_FIDDLE() local
8 SkDebugf("nullptr %c= color filter\n", paint.getColorFilter() ? '!' : '='); in REG_FIDDLE()
9 paint.setColorFilter(SkColorFilters::Blend(SK_ColorLTGRAY, SkBlendMode::kSrcIn)); in REG_FIDDLE()
10 SkDebugf("nullptr %c= color filter\n", paint.getColorFilter() ? '!' : '='); in REG_FIDDLE()
H A DPaint_getMaskFilter.cpp7 SkPaint paint; in REG_FIDDLE() local
8 SkDebugf("nullptr %c= mask filter\n", paint.getMaskFilter() ? '!' : '='); in REG_FIDDLE()
9 paint.setMaskFilter(SkMaskFilter::MakeBlur(kOuter_SkBlurStyle, 3)); in REG_FIDDLE()
10 SkDebugf("nullptr %c= mask filter\n", paint.getMaskFilter() ? '!' : '='); in REG_FIDDLE()
H A DPaint_getImageFilter.cpp9 SkPaint paint; in REG_FIDDLE() local
10 SkDebugf("nullptr %c= image filter\n", paint.getImageFilter() ? '!' : '='); in REG_FIDDLE()
11 paint.setImageFilter(SkImageFilters::Blur(3, 3, nullptr, nullptr)); in REG_FIDDLE()
12 SkDebugf("nullptr %c= image filter\n", paint.getImageFilter() ? '!' : '='); in REG_FIDDLE()
H A DPaint_getPathEffect.cpp7 SkPaint paint; in REG_FIDDLE() local
8 SkDebugf("nullptr %c= path effect\n", paint.getPathEffect() ? '!' : '='); in REG_FIDDLE()
9 paint.setPathEffect(SkCornerPathEffect::Make(10)); in REG_FIDDLE()
10 SkDebugf("nullptr %c= path effect\n", paint.getPathEffect() ? '!' : '='); in REG_FIDDLE()
H A DPaint_getShader.cpp7 SkPaint paint; in REG_FIDDLE() local
8 SkDebugf("nullptr %c= shader\n", paint.getShader() ? '!' : '='); in REG_FIDDLE()
9 paint.setShader(SkShaders::Empty()); in REG_FIDDLE()
10 SkDebugf("nullptr %c= shader\n", paint.getShader() ? '!' : '='); in REG_FIDDLE()
H A DSkPath_cubicTo_example_parametric.cpp32 SkPaint paint; in REG_FIDDLE() local
33 paint.setAntiAlias(true); in REG_FIDDLE()
34 paint.setStyle(SkPaint::kStroke_Style); in REG_FIDDLE()
35 paint.setStrokeWidth(5); in REG_FIDDLE()
48 canvas->drawPath(threeSegments, paint); in REG_FIDDLE()
50 paint.setColor(SkColorSetARGB(255, 0, 0, 255)); in REG_FIDDLE()
54 canvas->drawPath(cubicCurve, paint); in REG_FIDDLE()
/third_party/skia/samplecode/
H A DSampleMixer.cpp41 SkPaint paint; in dodraw() local
42 paint.setColorFilter(cf0); in dodraw()
43 canvas->drawImage(fImg, 0, 0, SkSamplingOptions(), &paint); in dodraw()
45 paint.setColorFilter(SkColorFilters::Lerp(fWeight, cf0, cf1)); in dodraw()
47 SkSamplingOptions(), &paint); in dodraw()
49 paint.setColorFilter(cf1); in dodraw()
50 canvas->drawImage(fImg, 2*fImg->width() + gap, 0, SkSamplingOptions(), &paint); in dodraw()
/third_party/skia/tools/
H A Dblob_cache_sim.cpp31 const SkPaint paint = record.paint; in main() local
32 bool fastByPass = paint.getStyle() == SkPaint::kFill_Style in main()
33 && paint.getPathEffect() == nullptr in main()
34 && paint.getMaskFilter() == nullptr; in main()
38 SkColor c = SkMaskGamma::CanonicalColor(paint.getColor()); in main()
81 record.blob.get(), record.offset.x(), record.offset.y(), record.paint); in main()
/third_party/skia/gm/
H A Dtallstretchedbitmaps.cpp40 SkPaint paint; in make_bm() local
49 paint.setAntiAlias(true); in make_bm()
50 paint.setColor(random.nextU() | 0xFF000000); in make_bm()
51 paint.setStyle(SkPaint::kStroke_Style); in make_bm()
52 paint.setStrokeWidth(kThickness); in make_bm()
53 paint.setStrokeCap(SkPaint::kRound_Cap); in make_bm()
57 canvas.drawArc(bounds, angle, kSweep, false, paint); in make_bm()
H A Dimagemagnifier.cpp46 SkPaint paint; in DEF_SIMPLE_GM_BG() local
47 paint.setColor(ToolUtils::color_to_565(rand.nextBits(24) | 0xFF000000)); in DEF_SIMPLE_GM_BG()
49 canvas->drawString(str, SkIntToScalar(x), SkIntToScalar(y), font, paint); in DEF_SIMPLE_GM_BG()
64 SkPaint paint; in make_img() local
65 paint.setColor(SK_ColorBLUE); in make_img()
68 canvas.drawLine(0, pos, SkIntToScalar(WIDTH_HEIGHT), pos, paint); in make_img()
69 canvas.drawLine(pos, 0, pos, SkIntToScalar(WIDTH_HEIGHT), paint); in make_img()
H A Dcolor4f.cpp61 SkPaint paint; in draw_into_canvas() local
63 paint.setShader(shProc()); in draw_into_canvas()
65 paint.setColorFilter(cfProc()); in draw_into_canvas()
66 canvas->drawRect(r, paint); in draw_into_canvas()
110 SkPaint paint; in DEF_SIMPLE_GM() local
122 paint.setShader(s); in DEF_SIMPLE_GM()
123 canvas->drawRect(r, paint); in DEF_SIMPLE_GM()
H A Dblurcircles2.cpp70 SkPaint paint; variable
71 paint.setColor(SK_ColorBLACK);
74 paint.setMaskFilter(blurMaker(fAnimBlurRadius));
79 canvas->drawCircle(0, 0, fAnimRadius, paint);
81 canvas->drawPath(almostCircle, paint);
107 paint.setMaskFilter(blurMaker(blurRadius));
119 canvas->drawCircle(0, 0, radius, paint);
122 canvas->drawPath(almostCircle, paint);
H A Dimagefiltersclipped.cpp47 SkPaint paint; in make_gradient_circle() local
48 paint.setShader(SkGradientShader::MakeRadial(SkPoint::Make(x, y), radius, colors, nullptr, in make_gradient_circle()
50 canvas->drawCircle(x, y, radius, paint); in make_gradient_circle()
56 SkPaint paint; in draw_clipped_filter() local
57 paint.setColor(SK_ColorWHITE); in draw_clipped_filter()
58 paint.setImageFilter(std::move(filter)); in draw_clipped_filter()
59 paint.setAntiAlias(true); in draw_clipped_filter()
68 primBounds.width() * 2 / 5, paint); in draw_clipped_filter()
H A Dmixedtextblobs.cpp34 SkPaint paint(skPaint); in draw_blob()
37 paint.setAlphaf(0.125f); in draw_blob()
38 canvas->drawTextBlob(blob, 0, 0, paint); in draw_blob()
40 paint.setAlphaf(1.0f); in draw_blob()
41 canvas->drawTextBlob(blob, 0, 0, paint); in draw_blob()
118 SkPaint paint; variable
121 paint.setColor(SK_ColorBLACK);
143 draw_blob(canvas, fBlob.get(), paint, clipRects[x]);
H A Druntimecolorfilter.cpp151 SkPaint paint; in DEF_SIMPLE_GM()
152 paint.setColorFilter(useCF ? colorfilter : nullptr); in DEF_SIMPLE_GM()
153 paint.setShader(useShader ? atlas->makeShader(SkSamplingOptions{}) : nullptr); in DEF_SIMPLE_GM()
154 return paint; in DEF_SIMPLE_GM()
168 SkPaint paint = makePaint(useCF, /*useShader=*/false); in DEF_SIMPLE_GM()
178 &paint); in DEF_SIMPLE_GM()
184 SkPaint paint = makePaint(useCF, /*useShader=*/true); in DEF_SIMPLE_GM()
185 canvas->drawPatch(cubics, nullptr, pos, paint); in DEF_SIMPLE_GM()
H A Dimagefiltersscaled.cpp46 SkPaint paint; in make_gradient_circle() local
47 paint.setShader(SkGradientShader::MakeRadial(SkPoint::Make(x, y), radius, colors, nullptr, in make_gradient_circle()
49 canvas->drawCircle(x, y, radius, paint); in make_gradient_circle()
129 SkPaint paint; variable
130 paint.setColor(SK_ColorBLUE);
131 paint.setImageFilter(filters[i]);
132 paint.setAntiAlias(true);
142 canvas->drawCircle(r.centerX(), r.centerY(), r.width()*2/5, paint);
/third_party/skia/bench/
H A DImageCycleBench.cpp47 SkPaint paint; variable
48 paint.setColor(~color);
49 paint.setBlendMode(SkBlendMode::kSrc);
51 SkRect::MakeLTRB(1, 1, kImageSize.fWidth - 1, kImageSize.fHeight - 1), paint);
59 SkPaint paint; variable
60 paint.setAntiAlias(true);
74 SkSamplingOptions(), &paint);
/third_party/skia/src/core/
H A DSkDraw_text.cpp38 void SkDraw::paintMasks(SkDrawableGlyphBuffer* drawables, const SkPaint& paint) const { in paintMasks()
43 SkBlitter::Choose(fDst, *fMatrixProvider, paint, &alloc, false, fRC->clipShader()); in paintMasks()
70 this->drawSprite(bm, mask.fBounds.x(), mask.fBounds.y(), paint); in paintMasks()
105 this->drawSprite(bm, mask.fBounds.x(), mask.fBounds.y(), paint); in paintMasks()
117 const SkPaint& paint) const { in paintPaths()
123 this->drawPath(*path, paint, &m, false); in paintPaths()
128 const SkPaint& paint, in drawGlyphRunList()
137 glyphPainter->drawForBitmapDevice(glyphRunList, paint, fMatrixProvider->localToDevice(), this); in drawGlyphRunList()
127 drawGlyphRunList(const SkGlyphRunList& glyphRunList, const SkPaint& paint, SkGlyphRunListPainter* glyphPainter) const drawGlyphRunList() argument
H A DSkStrikeSpec.h43 const SkPaint& paint,
51 const SkPaint& paint,
57 const SkPaint& paint,
64 const SkFont& font, const SkPaint* paint = nullptr);
67 static SkStrikeSpec MakeWithNoDevice(const SkFont& font, const SkPaint* paint = nullptr);
76 const SkPaint& paint,
97 static bool ShouldDrawAsPath(const SkPaint& paint, const SkFont& font, const SkMatrix& matrix);
103 const SkPaint& paint,
H A DSkBitmapDevice.h77 and are handling any looping from the paint.
79 void drawPaint(const SkPaint& paint) override;
81 const SkPoint[], const SkPaint& paint) override;
82 void drawRect(const SkRect& r, const SkPaint& paint) override;
83 void drawOval(const SkRect& oval, const SkPaint& paint) override;
84 void drawRRect(const SkRRect& rr, const SkPaint& paint) override;
115 void onDrawGlyphRunList(const SkGlyphRunList& glyphRunList, const SkPaint& paint) override;
172 SkBitmapDeviceFilteredSurfaceProps(const SkBitmap& bitmap, const SkPaint& paint, in SkBitmapDeviceFilteredSurfaceProps() argument
174 : fSurfaceProps((kN32_SkColorType != bitmap.colorType() || !paint.isSrcOver()) in SkBitmapDeviceFilteredSurfaceProps()
/third_party/skia/modules/sksg/src/
H A DSkSGGeometryEffect.cpp39 void GeometryEffect::onDraw(SkCanvas* canvas, const SkPaint& paint) const { in onDraw()
40 canvas->drawPath(fPath, paint); in onDraw()
148 SkPaint paint; in onRevalidateEffect() local
149 paint.setStyle(SkPaint::kStroke_Style); in onRevalidateEffect()
150 paint.setStrokeWidth(std::abs(fOffset) * 2); in onRevalidateEffect()
151 paint.setStrokeMiter(fMiterLimit); in onRevalidateEffect()
152 paint.setStrokeJoin(fJoin); in onRevalidateEffect()
155 paint.getFillPath(path, &fill_path, nullptr); in onRevalidateEffect()
/third_party/skia/tools/debugger/
H A DDrawCommand.cpp49 #define DEBUGCANVAS_ATTRIBUTE_PAINT "paint"
382 void apply_paint_blend_mode(const SkPaint& paint, SkJSONWriter& writer) { in apply_paint_blend_mode() argument
383 const auto mode = paint.getBlendMode_or(SkBlendMode::kSrcOver); in apply_paint_blend_mode()
752 static void apply_paint_color(const SkPaint& paint, SkJSONWriter& writer) { in apply_paint_color() argument
753 SkColor color = paint.getColor(); in apply_paint_color()
760 static void apply_paint_style(const SkPaint& paint, SkJSONWriter& writer) { in apply_paint_style() argument
761 SkPaint::Style style = paint.getStyle(); in apply_paint_style()
777 static void apply_paint_cap(const SkPaint& paint, SkJSONWriter& writer) { in apply_paint_cap() argument
778 SkPaint::Cap cap = paint.getStrokeCap(); in apply_paint_cap()
795 static void apply_paint_join(const SkPaint& paint, SkJSONWrite argument
813 apply_paint_maskfilter(const SkPaint& paint, SkJSONWriter& writer, UrlDataManager& urlDataManager) apply_paint_maskfilter() argument
846 apply_paint_patheffect(const SkPaint& paint, SkJSONWriter& writer, UrlDataManager& urlDataManager) apply_paint_patheffect() argument
902 MakeJsonPaint(SkJSONWriter& writer, const SkPaint& paint, UrlDataManager& urlDataManager) MakeJsonPaint() argument
1077 SkPaint paint; render() local
1169 DrawImageCommand(const SkImage* image, SkScalar left, SkScalar top, const SkSamplingOptions& sampling, const SkPaint* paint) DrawImageCommand() argument
1230 DrawImageLatticeCommand(const SkImage* image, const SkCanvas::Lattice& lattice, const SkRect& dst, SkFilterMode filter, const SkPaint* paint) DrawImageLatticeCommand() argument
1276 DrawImageRectCommand(const SkImage* image, const SkRect& src, const SkRect& dst, const SkSamplingOptions& sampling, const SkPaint* paint, SkCanvas::SrcRectConstraint constraint) DrawImageRectCommand() argument
1327 DrawImageRectLayerCommand(DebugLayerManager* layerManager, const int nodeId, const int frame, const SkRect& src, const SkRect& dst, const SkSamplingOptions& sampling, const SkPaint* paint, SkCanvas::SrcRectConstraint constraint) DrawImageRectLayerCommand() argument
1386 DrawOvalCommand(const SkRect& oval, const SkPaint& paint) DrawOvalCommand() argument
1418 DrawArcCommand(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint& paint) DrawArcCommand() argument
1462 DrawPaintCommand(const SkPaint& paint) DrawPaintCommand() argument
1480 DrawBehindCommand(const SkPaint& paint) DrawBehindCommand() argument
1500 DrawPathCommand(const SkPath& path, const SkPaint& paint) DrawPathCommand() argument
1521 DrawRegionCommand(const SkRegion& region, const SkPaint& paint) DrawRegionCommand() argument
1542 BeginDrawPictureCommand(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint) BeginDrawPictureCommand() argument
1589 DrawPointsCommand(SkCanvas::PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint) DrawPointsCommand() argument
1634 DrawTextBlobCommand(sk_sp<SkTextBlob> blob, SkScalar x, SkScalar y, const SkPaint& paint) DrawTextBlobCommand() argument
1715 DrawPatchCommand(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode bmode, const SkPaint& paint) DrawPatchCommand() argument
1765 DrawRectCommand(const SkRect& rect, const SkPaint& paint) DrawRectCommand() argument
1784 DrawRRectCommand(const SkRRect& rrect, const SkPaint& paint) DrawRRectCommand() argument
1805 DrawDRRectCommand(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint) DrawDRRectCommand() argument
1894 DrawEdgeAAImageSetCommand(const SkCanvas::ImageSetEntry set[], int count, const SkPoint dstClips[], const SkMatrix preViewMatrices[], const SkSamplingOptions& sampling, const SkPaint* paint, SkCanvas::SrcRectConstraint constraint) DrawEdgeAAImageSetCommand() argument
1938 DrawVerticesCommand(sk_sp<SkVertices> vertices, SkBlendMode bmode, const SkPaint& paint) DrawVerticesCommand() argument
1952 DrawAtlasCommand(const SkImage* image, const SkRSXform xform[], const SkRect tex[], const SkColor colors[], int count, SkBlendMode bmode, const SkSamplingOptions& sampling, const SkRect* cull, const SkPaint* paint) DrawAtlasCommand() argument
[all...]

Completed in 12 milliseconds

1...<<21222324252627282930>>...54