Home
last modified time | relevance | path

Searched refs:paint (Results 1 - 25 of 1337) sorted by relevance

12345678910>>...54

/third_party/skia/src/utils/
H A DSkPaintFilterCanvas.cpp18 AutoPaintFilter(const SkPaintFilterCanvas* canvas, const SkPaint* paint) in AutoPaintFilter() argument
19 : fPaint(paint ? *paint : SkPaint()) { in AutoPaintFilter()
23 AutoPaintFilter(const SkPaintFilterCanvas* canvas, const SkPaint& paint) in AutoPaintFilter() argument
24 : AutoPaintFilter(canvas, &paint) { } in AutoPaintFilter()
26 const SkPaint& paint() const { return fPaint; } in paint() function in SkPaintFilterCanvas::AutoPaintFilter
46 void SkPaintFilterCanvas::onDrawPaint(const SkPaint& paint) { in onDrawPaint() argument
47 AutoPaintFilter apf(this, paint); in onDrawPaint()
49 this->SkNWayCanvas::onDrawPaint(apf.paint()); in onDrawPaint()
53 void SkPaintFilterCanvas::onDrawBehind(const SkPaint& paint) { in onDrawBehind() argument
60 onDrawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint) onDrawPoints() argument
73 onDrawRect(const SkRect& rect, const SkPaint& paint) onDrawRect() argument
80 onDrawRRect(const SkRRect& rrect, const SkPaint& paint) onDrawRRect() argument
87 onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint) onDrawDRRect() argument
95 onDrawRegion(const SkRegion& region, const SkPaint& paint) onDrawRegion() argument
102 onDrawOval(const SkRect& rect, const SkPaint& paint) onDrawOval() argument
109 onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint& paint) onDrawArc() argument
117 onDrawPath(const SkPath& path, const SkPaint& paint) onDrawPath() argument
124 onDrawImage2(const SkImage* image, SkScalar left, SkScalar top, const SkSamplingOptions& sampling, const SkPaint* paint) onDrawImage2() argument
132 onDrawImageRect2(const SkImage* image, const SkRect& src, const SkRect& dst, const SkSamplingOptions& sampling, const SkPaint* paint, SrcRectConstraint constraint) onDrawImageRect2() argument
141 onDrawImageLattice2(const SkImage* image, const Lattice& lattice, const SkRect& dst, SkFilterMode filter, const SkPaint* paint) onDrawImageLattice2() argument
150 onDrawVerticesObject(const SkVertices* vertices, SkBlendMode bmode, const SkPaint& paint) onDrawVerticesObject() argument
158 onDrawPatch(const SkPoint cubics[], const SkColor colors[], const SkPoint texCoords[], SkBlendMode bmode, const SkPaint& paint) onDrawPatch() argument
199 onDrawGlyphRunList(const SkGlyphRunList& list, const SkPaint& paint) onDrawGlyphRunList() argument
206 onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) onDrawTextBlob() argument
214 onDrawAtlas2(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) onDrawAtlas2() argument
235 SkPaint paint; onDrawEdgeAAQuad() local
245 onDrawEdgeAAImageSet2(const ImageSetEntry set[], int count, const SkPoint dstClips[], const SkMatrix preViewMatrices[], const SkSamplingOptions& sampling, const SkPaint* paint, SrcRectConstraint constraint) onDrawEdgeAAImageSet2() argument
[all...]
/third_party/skia/gm/
H A Dconcavepaths.cpp16 void test_concave(SkCanvas* canvas, const SkPaint& paint) { in test_concave() argument
18 canvas->drawPath(SkPath::Polygon({{20,20}, {80,20}, {30,30}, {20,80}}, false), paint); in test_concave()
22 void test_reverse_concave(SkCanvas* canvas, const SkPaint& paint) { in test_reverse_concave() argument
25 canvas->drawPath(SkPath::Polygon({{20,20}, {20,80}, {30,30}, {80,20}}, false), paint); in test_reverse_concave()
30 void test_bowtie(SkCanvas* canvas, const SkPaint& paint) { in test_bowtie() argument
33 canvas->drawPath(SkPath::Polygon({{20,20}, {80,80}, {80,20}, {20,80}}, false), paint); in test_bowtie()
38 void test_fake_bowtie(SkCanvas* canvas, const SkPaint& paint) { in test_fake_bowtie() argument
42 false), paint); in test_fake_bowtie()
48 void test_intruding_vertex(SkCanvas* canvas, const SkPaint& paint) { in test_intruding_vertex() argument
52 false, SkPathFillType::kWinding, true), paint); in test_intruding_vertex()
58 test_inversion_repeat_vertex(SkCanvas* canvas, const SkPaint& paint) test_inversion_repeat_vertex() argument
65 SkPathFillType::kWinding, true), paint); test_inversion_repeat_vertex() local
70 test_fish(SkCanvas* canvas, const SkPaint& paint) test_fish() argument
80 test_fast_forward(SkCanvas* canvas, const SkPaint& paint) test_fast_forward() argument
91 test_hole(SkCanvas* canvas, const SkPaint& paint) test_hole() argument
102 test_star(SkCanvas* canvas, const SkPaint& paint) test_star() argument
111 test_twist(SkCanvas* canvas, const SkPaint& paint) test_twist() argument
121 canvas->drawPath(SkPath::Polygon(pts, SK_ARRAY_COUNT(pts), false), paint); test_twist() local
126 test_stairstep(SkCanvas* canvas, const SkPaint& paint) test_stairstep() argument
134 test_stairstep2(SkCanvas* canvas, const SkPaint& paint) test_stairstep2() argument
142 test_overlapping(SkCanvas* canvas, const SkPaint& paint) test_overlapping() argument
151 test_partners(SkCanvas* canvas, const SkPaint& paint) test_partners() argument
164 test_winding_merged_to_zero(SkCanvas* canvas, const SkPaint& paint) test_winding_merged_to_zero() argument
181 test_monotone_1(SkCanvas* canvas, const SkPaint& paint) test_monotone_1() argument
193 test_monotone_2(SkCanvas* canvas, const SkPaint& paint) test_monotone_2() argument
205 test_monotone_3(SkCanvas* canvas, const SkPaint& paint) test_monotone_3() argument
217 test_monotone_4(SkCanvas* canvas, const SkPaint& paint) test_monotone_4() argument
232 test_monotone_5(SkCanvas* canvas, const SkPaint& paint) test_monotone_5() argument
244 test_degenerate(SkCanvas* canvas, const SkPaint& paint) test_degenerate() argument
258 test_coincident_edge(SkCanvas* canvas, const SkPaint& paint) test_coincident_edge() argument
276 test_bowtie_coincident_triangle(SkCanvas* canvas, const SkPaint& paint) test_bowtie_coincident_triangle() argument
293 test_collinear_outer_boundary_edge(SkCanvas* canvas, const SkPaint& paint) test_collinear_outer_boundary_edge() argument
308 test_coincident_edges_1(SkCanvas* canvas, const SkPaint& paint) test_coincident_edges_1() argument
322 test_coincident_edges_2(SkCanvas* canvas, const SkPaint& paint) test_coincident_edges_2() argument
336 test_coincident_edges_3(SkCanvas* canvas, const SkPaint& paint) test_coincident_edges_3() argument
350 test_coincident_edges_4(SkCanvas* canvas, const SkPaint& paint) test_coincident_edges_4() argument
367 SkPaint paint; DEF_SIMPLE_GM() local
[all...]
H A Ddisplacement.cpp55 void drawClippedBitmap(SkCanvas* canvas, int x, int y, const SkPaint& paint) const { in drawClippedBitmap()
59 canvas->drawImage(fImage, 0, 0, SkSamplingOptions(), &paint); in drawClippedBitmap()
65 SkPaint paint; variable
67 paint.setImageFilter(SkImageFilters::DisplacementMap(
69 this->drawClippedBitmap(canvas, 0, 0, paint);
70 paint.setImageFilter(SkImageFilters::DisplacementMap(
72 this->drawClippedBitmap(canvas, 100, 0, paint);
73 paint.setImageFilter(SkImageFilters::DisplacementMap(
75 this->drawClippedBitmap(canvas, 200, 0, paint);
76 paint
[all...]
H A Ddaa.cpp23 SkPaint paint; in DEF_SIMPLE_GM() local
24 paint.setAntiAlias(true); in DEF_SIMPLE_GM()
27 paint.setColor(SK_ColorBLACK); in DEF_SIMPLE_GM()
29 K*1.5f, K*0.5f, SkFont(), paint); in DEF_SIMPLE_GM()
31 paint.setColor(SK_ColorRED); in DEF_SIMPLE_GM()
32 canvas->drawRect({0,0,K,K}, paint); in DEF_SIMPLE_GM()
40 paint.setColor(SK_ColorGREEN); in DEF_SIMPLE_GM()
41 canvas->drawPath(path, paint); in DEF_SIMPLE_GM()
46 paint.setColor(SK_ColorBLACK); in DEF_SIMPLE_GM()
48 K*1.5f, K*0.5f, SkFont(), paint); in DEF_SIMPLE_GM()
[all...]
H A Dblurs.cpp39 SkPaint paint; in DEF_SIMPLE_GM_BG() local
40 paint.setAntiAlias(true); in DEF_SIMPLE_GM_BG()
41 paint.setColor(SK_ColorBLUE); in DEF_SIMPLE_GM_BG()
47 paint.setMaskFilter(SkMaskFilter::MakeBlur(gRecs[i].fStyle, in DEF_SIMPLE_GM_BG()
50 paint.setMaskFilter(nullptr); in DEF_SIMPLE_GM_BG()
55 paint); in DEF_SIMPLE_GM_BG()
60 paint.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, in DEF_SIMPLE_GM_BG()
64 paint.setColor(SK_ColorBLACK); in DEF_SIMPLE_GM_BG()
65 canvas->drawString("Hamburgefons Style", x, y, font, paint); in DEF_SIMPLE_GM_BG()
67 x, y + SkIntToScalar(50), font, paint); in DEF_SIMPLE_GM_BG()
85 SkPaint paint; DEF_SIMPLE_GM() local
104 SkPaint paint; DEF_SIMPLE_GM() local
125 SkPaint paint; DEF_SIMPLE_GM() local
146 SkPaint paint; DEF_SIMPLE_GM() local
153 SkPaint paint; DEF_SIMPLE_GM() local
[all...]
H A Dconicpaths.cpp103 SkPaint paint; in drawGiantCircle() local
104 canvas->drawPath(fGiantCircle, paint); in drawGiantCircle()
113 SkPaint paint; variable
117 paint.setARGB(kAlphaValue[a], 0, 0, 0);
119 paint.setAntiAlias(SkToBool(aa));
121 paint.setStroke(fh != 0);
126 canvas->drawPath(fPaths[p], paint);
155 SkPaint paint; in DEF_SIMPLE_GM() local
156 paint.setAntiAlias(true); in DEF_SIMPLE_GM()
157 paint in DEF_SIMPLE_GM()
171 SkPaint paint; DEF_SIMPLE_GM() local
181 SkPaint paint; DEF_SIMPLE_GM() local
216 SkPaint paint; DEF_SIMPLE_GM() local
[all...]
H A Dpatch.cpp38 SkPaint paint; in draw_control_points() local
48 paint.setColor(SK_ColorBLACK); in draw_control_points()
49 paint.setStrokeWidth(0.5f); in draw_control_points()
51 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, bottom, paint); in draw_control_points()
52 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, bottom + 1, paint); in draw_control_points()
53 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, top, paint); in draw_control_points()
54 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, left, paint); in draw_control_points()
55 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, right, paint); in draw_control_points()
57 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, top + 1, paint); in draw_control_points()
58 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, left + 1, paint); in draw_control_points()
98 SkPaint paint; dopatch() local
191 SkPaint paint; DEF_SIMPLE_GM() local
[all...]
H A Demboss.cpp29 SkPaint paint; in make_bm() local
30 paint.setAntiAlias(true); in make_bm()
31 surf->getCanvas()->drawCircle(50, 50, 50, paint); in make_bm()
50 SkPaint paint; variable
55 paint.setMaskFilter(SkEmbossMaskFilter::Make( in Make()
58 canvas->drawImage(img, 10, 10, SkSamplingOptions(), &paint);
63 paint.setColorFilter(SkColorFilters::Blend(0xFFFF0000, SkBlendMode::kSrcATop));
64 canvas->drawImage(img, 10, 10, SkSamplingOptions(), &paint);
67 paint.setAntiAlias(true);
68 paint
[all...]
H A Dcollapsepaths.cpp14 void test_collapse1(SkCanvas* canvas, const SkPaint& paint) { in test_collapse1() argument
25 canvas->drawPath(path.detach(), paint); in test_collapse1()
28 void test_collapse2(SkCanvas* canvas, const SkPaint& paint) { in test_collapse2() argument
37 canvas->drawPath(path.detach(), paint); in test_collapse2()
40 void test_collapse3(SkCanvas* canvas, const SkPaint& paint) { in test_collapse3() argument
49 canvas->drawPath(path.detach(), paint); in test_collapse3()
52 void test_collapse4(SkCanvas* canvas, const SkPaint& paint) { in test_collapse4() argument
61 canvas->drawPath(path.detach(), paint); in test_collapse4()
64 void test_collapse5(SkCanvas* canvas, const SkPaint& paint) { in test_collapse5() argument
74 canvas->drawPath(path.detach(), paint); in test_collapse5()
77 test_collapse6(SkCanvas* canvas, const SkPaint& paint) test_collapse6() argument
90 test_collapse7(SkCanvas* canvas, const SkPaint& paint) test_collapse7() argument
103 test_collapse8(SkCanvas* canvas, const SkPaint& paint) test_collapse8() argument
116 test_collapse9(SkCanvas* canvas, const SkPaint& paint) test_collapse9() argument
133 test_collapse10(SkCanvas* canvas, const SkPaint& paint) test_collapse10() argument
147 SkPaint paint; DEF_SIMPLE_GM() local
[all...]
H A Dcolormatrix.cpp31 static void set_color_matrix(SkPaint* paint, const SkColorMatrix& matrix) { in set_color_matrix() argument
32 paint->setColorFilter(SkColorFilters::Matrix(matrix)); in set_color_matrix()
35 static void set_array(SkPaint* paint, const float array[]) { in set_array() argument
36 paint->setColorFilter(SkColorFilters::Matrix(array)); in set_array()
66 SkPaint paint; in CreateSolidBitmap() local
67 paint.setColor(SkColorSetARGB(255, x * 255 / width, y * 255 / height, 0)); in CreateSolidBitmap()
69 SkIntToScalar(y), SK_Scalar1, SK_Scalar1), paint); in CreateSolidBitmap() local
84 SkPaint paint; in CreateTransparentBitmap() local
85 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, in CreateTransparentBitmap()
87 canvas.drawRect(SkRect::MakeWH(SkIntToScalar(width), SkIntToScalar(height)), paint); in CreateTransparentBitmap()
92 SkPaint paint; global() variable
[all...]
H A Dpatheffects.cpp32 static void compose_pe(SkPaint* paint) { in compose_pe() argument
33 SkPathEffect* pe = paint->getPathEffect(); in compose_pe()
41 paint->setPathEffect(compose); in compose_pe()
44 static void hair_pe(SkPaint* paint) { in hair_pe() argument
45 paint->setStrokeWidth(0); in hair_pe()
48 static void hair2_pe(SkPaint* paint) { in hair2_pe() argument
49 paint->setStrokeWidth(0); in hair2_pe()
50 compose_pe(paint); in hair2_pe()
53 static void stroke_pe(SkPaint* paint) { in stroke_pe() argument
54 paint in stroke_pe()
58 dash_pe(SkPaint* paint) dash_pe() argument
75 one_d_pe(SkPaint* paint) one_d_pe() argument
92 fill_pe(SkPaint* paint) fill_pe() argument
97 discrete_pe(SkPaint* paint) discrete_pe() argument
108 tile_pe(SkPaint* paint) tile_pe() argument
127 SkPaint paint; global() variable
141 gPE[i](&paint); global() variable
155 gPE2[i](&paint); global() variable
216 SkPaint paint; global() variable
272 SkPaint paint; DEF_SIMPLE_GM() local
383 SkPaint paint; global() variable
[all...]
H A Dlattice.cpp55 SkPaint paint; in make_image() local
56 paint.setAntiAlias(true); in make_image()
58 paint.setColor(0xFFFFFF00); in make_image()
59 canvas->drawRoundRect(r, radius, radius, paint); in make_image()
62 paint.setColor(0x8800FF00); in make_image()
63 canvas->drawRect(r, paint); in make_image()
65 paint.setColor(0x880000FF); in make_image()
66 canvas->drawRect(r, paint); in make_image()
68 paint.setColor(0x88FF00FF); in make_image()
69 canvas->drawRect(r, paint); in make_image()
245 SkPaint paint; makeImage() local
293 onDrawHelper(SkCanvas* canvas, int padLeft, int padTop, int padRight, int padBottom, SkPaint& paint) onDrawHelper() argument
344 SkPaint paint; global() variable
382 SkPaint paint; DEF_SIMPLE_GM_BG() local
[all...]
H A Daddarc.cpp39 SkPaint paint; variable
40 paint.setAntiAlias(true);
41 paint.setStroke(true);
42 paint.setStrokeWidth(15);
44 const SkScalar inset = paint.getStrokeWidth() + 4;
49 while (r.width() > paint.getStrokeWidth() * 3) {
50 paint.setColor(ToolUtils::color_to_565(rand.nextU() | (0xFF << 24)));
58 canvas->drawPath(path.detach().setIsVolatile(true), paint);
83 SkPaint paint; in DEF_SIMPLE_GM() local
84 paint in DEF_SIMPLE_GM()
128 SkPaint paint; global() variable
178 SkPaint paint; global() variable
228 SkPaint paint; DEF_SIMPLE_GM() local
273 SkPaint paint; DEF_SIMPLE_GM() local
[all...]
H A Ddrawregionmodes.cpp47 SkPaint paint; variable
48 paint.setStyle(SkPaint::kFill_Style);
49 paint.setColor(SK_ColorRED);
50 paint.setAntiAlias(true);
55 canvas->drawRegion(fRegion, paint);
58 paint.setImageFilter(SkImageFilters::Blur(5.0f, 5.0f, nullptr, nullptr));
59 canvas->drawRegion(fRegion, paint);
62 paint.setImageFilter(nullptr);
63 paint.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, 5.0f));
64 canvas->drawRegion(fRegion, paint);
[all...]
H A Dimagefiltersbase.cpp100 SkPaint paint; in draw_paint() local
101 paint.setImageFilter(std::move(imf)); in draw_paint()
102 paint.setColor(SK_ColorGREEN); in draw_paint()
105 canvas->drawPaint(paint); in draw_paint()
110 SkPaint paint; in draw_line() local
111 paint.setColor(SK_ColorBLUE); in draw_line()
112 paint.setImageFilter(imf); in draw_line()
113 paint.setStrokeWidth(r.width()/10); in draw_line()
114 canvas->drawLine(r.fLeft, r.fTop, r.fRight, r.fBottom, paint); in draw_line()
118 SkPaint paint; in draw_rect() local
127 SkPaint paint; draw_path() local
135 SkPaint paint; draw_text() local
144 SkPaint paint; draw_bitmap() local
160 SkPaint paint; draw_patch() local
190 SkPaint paint; draw_atlas() local
212 SkPaint paint; draw_frame() local
302 drawWaterfall(SkCanvas* canvas, const SkPaint& paint) drawWaterfall() argument
328 SkPaint paint; global() variable
[all...]
H A Dp3.cpp54 SkPaint paint; in compare_pixel() local
71 canvas->drawString("can't readPixels() on this canvas :(", 100,20, font, paint); in compare_pixel()
106 canvas->drawString(label, 80,20, font, paint); in compare_pixel()
109 canvas->drawString(l.label, 80,20, font, paint); in compare_pixel()
110 canvas->drawString(fmt(l.color).c_str(), 140,20, font, paint); in compare_pixel()
126 SkPaint paint; in DEF_SIMPLE_GM() local
127 paint.setColor4f({1,0,0,1}, p3.get()); in DEF_SIMPLE_GM()
129 canvas->drawRect({10,10,70,70}, paint); in DEF_SIMPLE_GM()
142 SkPaint paint; in DEF_SIMPLE_GM() local
143 paint in DEF_SIMPLE_GM()
182 SkPaint paint; DEF_SIMPLE_GM() local
202 SkPaint paint; DEF_SIMPLE_GM() local
228 SkPaint paint; DEF_SIMPLE_GM() local
257 SkPaint paint; DEF_SIMPLE_GM() local
283 SkPaint paint; DEF_SIMPLE_GM() local
311 SkPaint paint; DEF_SIMPLE_GM() local
396 SkPaint paint; DEF_SIMPLE_GM() local
410 SkPaint paint; DEF_SIMPLE_GM() local
424 SkPaint paint; DEF_SIMPLE_GM() local
442 SkPaint paint; DEF_SIMPLE_GM() local
[all...]
/third_party/skia/tests/
H A DGpuDrawPathTest.cpp27 SkPaint paint; in test_drawPathEmpty() local
29 canvas->drawRect(emptyRect, paint); in test_drawPathEmpty()
30 canvas->drawPath(SkPath(), paint); in test_drawPathEmpty() local
31 canvas->drawOval(emptyRect, paint); in test_drawPathEmpty()
32 canvas->drawRect(emptyRect, paint); in test_drawPathEmpty()
33 canvas->drawRRect(SkRRect::MakeRect(emptyRect), paint); in test_drawPathEmpty() local
36 paint.setAntiAlias(true); in test_drawPathEmpty()
37 paint.setStyle(SkPaint::kStroke_Style); in test_drawPathEmpty()
38 paint.setColor(SK_ColorGRAY); in test_drawPathEmpty()
39 paint in test_drawPathEmpty()
42 canvas->drawPath(SkPath(), paint); test_drawPathEmpty() local
45 canvas->drawRRect(SkRRect::MakeRect(emptyRect), paint); test_drawPathEmpty() local
50 SkPaint paint; fill_and_stroke() local
98 SkPaint paint; DEF_GPUTEST_FOR_ALL_CONTEXTS() local
122 SkPaint paint; DEF_GPUTEST_FOR_ALL_CONTEXTS() local
[all...]
H A DPaintTest.cpp24 SkPaint paint; in DEF_TEST() local
26 paint.setStyle(SkPaint::kStrokeAndFill_Style); in DEF_TEST()
27 paint.setStrokeWidth(SkIntToScalar(2)); in DEF_TEST()
29 paint.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, in DEF_TEST()
32 // copy the paint using the copy constructor and check they are the same in DEF_TEST()
33 SkPaint copiedPaint = paint; in DEF_TEST()
34 REPORTER_ASSERT(reporter, paint == copiedPaint); in DEF_TEST()
36 // copy the paint using the equal operator and check they are the same in DEF_TEST()
37 copiedPaint = paint; in DEF_TEST()
38 REPORTER_ASSERT(reporter, paint in DEF_TEST()
52 SkPaint paint; DEF_TEST() local
103 SkPaint paint; DEF_TEST() local
[all...]
/third_party/skia/src/core/
H A DSkPaint.cpp240 /* Packing the paint
250 static uint32_t pack_v68(const SkPaint& paint, unsigned flatFlags) { in pack_v68() argument
252 const auto bm = paint.asBlendMode(); in pack_v68()
256 packed |= shift_bits(((unsigned)paint.isDither() << 1) | in pack_v68()
257 (unsigned)paint.isAntiAlias(), 0, 8); in pack_v68()
259 packed |= shift_bits(paint.getStrokeCap(), 16, 2); in pack_v68()
260 packed |= shift_bits(paint.getStrokeJoin(), 18, 2); in pack_v68()
261 packed |= shift_bits(paint.getStyle(), 20, 2); in pack_v68()
267 static uint32_t unpack_v68(SkPaint* paint, uint32_t packed, SkSafeRange& safe) { in unpack_v68() argument
268 paint in unpack_v68()
294 Flatten(const SkPaint& paint, SkWriteBuffer& buffer) Flatten() argument
323 SkPaint paint; Unflatten() local
[all...]
H A DSkOverdrawCanvas.cpp55 void paintMasks(SkDrawableGlyphBuffer* drawables, const SkPaint& paint) const override {
67 void onDrawGlyphRunList(const SkGlyphRunList& glyphRunList, const SkPaint& paint) override {
69 fPainter.drawForBitmapDevice(glyphRunList, paint, SkMatrix(), this);
79 const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) { in onDrawTextBlob()
82 this->onDrawGlyphRunList(glyphRunList, paint); in onDrawTextBlob()
86 const SkGlyphRunList& glyphRunList, const SkPaint& paint) { in onDrawGlyphRunList()
91 device.drawGlyphRunList(glyphRunList, paint); in onDrawGlyphRunList()
100 void SkOverdrawCanvas::onDrawPaint(const SkPaint& paint) { in onDrawPaint() argument
101 if (0 == paint.getColor() && !paint in onDrawPaint()
78 onDrawTextBlob( const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) onDrawTextBlob() argument
85 onDrawGlyphRunList( const SkGlyphRunList& glyphRunList, const SkPaint& paint) onDrawGlyphRunList() argument
108 onDrawBehind(const SkPaint& paint) onDrawBehind() argument
112 onDrawRect(const SkRect& rect, const SkPaint& paint) onDrawRect() argument
116 onDrawRegion(const SkRegion& region, const SkPaint& paint) onDrawRegion() argument
120 onDrawOval(const SkRect& oval, const SkPaint& paint) onDrawOval() argument
124 onDrawArc(const SkRect& arc, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint& paint) onDrawArc() argument
129 onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint) onDrawDRRect() argument
134 onDrawRRect(const SkRRect& rect, const SkPaint& paint) onDrawRRect() argument
138 onDrawPoints(PointMode mode, size_t count, const SkPoint points[], const SkPaint& paint) onDrawPoints() argument
143 onDrawVerticesObject(const SkVertices* vertices, SkBlendMode blendMode, const SkPaint& paint) onDrawVerticesObject() argument
148 onDrawAtlas2(const SkImage* image, const SkRSXform xform[], const SkRect texs[], const SkColor colors[], int count, SkBlendMode mode, const SkSamplingOptions& sampling, const SkRect* cull, const SkPaint* paint) onDrawAtlas2() argument
162 onDrawPath(const SkPath& path, const SkPaint& paint) onDrawPath() argument
223 onDrawEdgeAAImageSet2(const ImageSetEntry set[], int count, const SkPoint dstClips[], const SkMatrix preViewMatrices[], const SkSamplingOptions& sampling, const SkPaint* paint, SrcRectConstraint constraint) onDrawEdgeAAImageSet2() argument
247 overdrawPaint(const SkPaint& paint) overdrawPaint() argument
[all...]
H A DSkCanvas.cpp83 * - paint is not fill
84 * - paint would blur or otherwise change the coverage of the rect
86 bool SkCanvas::wouldOverwriteEntireSurface(const SkRect* rect, const SkPaint* paint, in wouldOverwriteEntireSurface() argument
125 if (paint) { in wouldOverwriteEntireSurface()
126 SkPaint::Style paintStyle = paint->getStyle(); in wouldOverwriteEntireSurface()
131 if (paint->getMaskFilter() || paint->getPathEffect() || paint->getImageFilter()) { in wouldOverwriteEntireSurface()
135 return SkPaintPriv::Overwrites(paint, (SkPaintPriv::ShaderOverrideOpacity)overrideOpacity); in wouldOverwriteEntireSurface()
175 bool SkCanvas::predrawNotify(const SkRect* rect, const SkPaint* paint, in predrawNotify() argument
197 Layer(sk_sp<SkBaseDevice> device, sk_sp<SkImageFilter> imageFilter, const SkPaint& paint) Layer() argument
265 image_to_color_filter(SkPaint* paint) image_to_color_filter() argument
308 AutoLayerForImageFilter(SkCanvas* canvas, const SkPaint& paint, const SkRect* rawBounds = nullptr) AutoLayerForImageFilter() argument
353 const SkPaint& paint() const { return fPaint; } paint() function in AutoLayerForImageFilter
363 aboutToDraw( SkCanvas* canvas, const SkPaint& paint, const SkRect* rawBounds, CheckForOverwrite checkOverwrite, ShaderOverrideOpacity overrideOpacity) aboutToDraw() argument
651 saveLayer(const SkRect* bounds, const SkPaint* paint) saveLayer() argument
823 SkPaint paint; draw_layer_as_sprite() local
829 internalDrawDeviceWithFilter(SkBaseDevice* src, SkBaseDevice* dst, const SkImageFilter* filter, const SkPaint& paint, DeviceCompatibleWithFilter compat, SkScalar scaleFactor) internalDrawDeviceWithFilter() argument
974 optimize_layer_filter(const SkImageFilter* filter, SkPaint* paint, bool* coversDevice=nullptr) optimize_layer_filter() argument
1190 SkPaint paint; internalSaveBehind() local
1217 SkPaint paint; internalRestore() local
[all...]
H A DSkStrokeRec.cpp23 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkScalar resScale) { in SkStrokeRec() argument
24 this->init(paint, paint.getStyle(), resScale); in SkStrokeRec()
27 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkPaint::Style styleOverride, SkScalar resScale) { in SkStrokeRec() argument
28 this->init(paint, styleOverride, resScale); in SkStrokeRec()
31 void SkStrokeRec::init(const SkPaint& paint, SkPaint::Style style, SkScalar resScale) { in init() argument
40 fWidth = paint.getStrokeWidth(); in init()
44 if (0 == paint.getStrokeWidth()) { in init()
49 fWidth = paint.getStrokeWidth(); in init()
54 SkDEBUGFAIL("unknown paint styl in init()
142 GetInflationRadius(const SkPaint& paint, SkPaint::Style style) GetInflationRadius() argument
[all...]
/third_party/skia/experimental/docs/
H A DcanvasBackend.js29 var paint = paintToCanvas(action.paint);
71 if ('fill' == paint.style) {
74 assert('stroke' == paint.style);
79 if ('fill' == paint.style) {
82 assert('stroke' == paint.style);
95 function paintToCanvas(paint) {
97 var inPicture = 'string' == typeof(paint);
99 paint = (new Function("return " + paint))();
[all...]
/third_party/skia/modules/androidkit/src/
H A DPaint.cpp27 if (auto* paint = reinterpret_cast<SkPaint*>(native_paint)) { in Paint_SetColor()
28 paint->setColor4f({r, g, b, a}); in Paint_SetColor()
33 if (auto* paint = reinterpret_cast<SkPaint*>(native_paint)) { in Paint_SetStroke()
34 paint->setStroke(stroke); in Paint_SetStroke()
39 if (auto* paint = reinterpret_cast<SkPaint*>(native_paint)) { in Paint_SetStrokeWidth()
40 paint->setStrokeWidth(width); in Paint_SetStrokeWidth()
45 if (auto* paint = reinterpret_cast<SkPaint*>(native_paint)) { in Paint_SetStrokeCap()
49 paint->setStrokeCap(SkPaint::kButt_Cap); in Paint_SetStrokeCap()
52 paint->setStrokeCap(SkPaint::kRound_Cap); in Paint_SetStrokeCap()
55 paint in Paint_SetStrokeCap()
[all...]
/third_party/skia/samplecode/
H A DSamplePath.cpp69 SkPaint paint; in test_cubic2() local
70 paint.setAntiAlias(true); in test_cubic2()
71 canvas.drawPath(path, paint); in test_cubic2()
136 SkPaint paint; in drawPath() local
138 paint.setAntiAlias(true); in drawPath()
139 paint.setStyle(SkPaint::kStroke_Style); in drawPath()
140 paint.setStrokeJoin(j); in drawPath()
141 paint.setStrokeWidth(fStroke); in drawPath()
146 paint.getFillPath(path, &fill); in drawPath()
147 paint in drawPath()
468 SkPaint paint; global() variable
596 SkPaint paint; Dot() local
625 SkPaint paint; showFlattness() local
684 SkPaint paint; showInnerQuads() local
692 SkPaint paint; global() variable
[all...]

Completed in 11 milliseconds

12345678910>>...54