Home
last modified time | relevance | path

Searched refs:paints (Results 1 – 25 of 33) sorted by relevance

12

/external/skia/samplecode/
DSampleAARects.cpp56 SkPaint paints[] = { bluePaint, bmpPaint }; in onDrawContent() local
63 for (size_t p = 0; p < SK_ARRAY_COUNT(paints); ++p) { in onDrawContent()
65 paints[p].setStyle(stroke ? SkPaint::kStroke_Style : SkPaint::kFill_Style); in onDrawContent()
67 paints[p].setAntiAlias(a > 0); in onDrawContent()
68 paints[p].setAlpha(a > 1 ? 0x80 : 0xff); in onDrawContent()
75 canvas->drawRect(rect, paints[p]); in onDrawContent()
82 canvas->drawRect(rect, paints[p]); in onDrawContent()
89 canvas->drawRect(rect, paints[p]); in onDrawContent()
96 canvas->drawRect(rect, paints[p]); in onDrawContent()
105 canvas->drawRect(rect, paints[p]); in onDrawContent()
[all …]
DSampleAAGeometry.cpp465 void draw(SkCanvas* canvas, const ButtonPaints& paints) { in draw()
469 canvas->drawRect(fBounds, paints.fStates[fState]); in draw()
471 paints.fLabelFont, SkPaint(), SkTextUtils::kCenter_Align); in draw()
532 virtual void draw(SkCanvas* canvas, const ControlPaints& paints) { in draw()
536 canvas->drawRect(fBounds, paints.fOutline); in draw()
538 canvas->drawLine(fBounds.fLeft - 5, fYLo, fBounds.fRight + 5, fYLo, paints.fIndicator); in draw()
541 canvas->drawString(label, fBounds.fLeft + 5, fYLo - 5, paints.fValueFont, paints.fValue); in draw()
542 canvas->drawString(fName, fBounds.fLeft, fBounds.bottom() + 11, paints.fLabelFont, in draw()
543 paints.fLabel); in draw()
557 virtual void draw(SkCanvas* canvas, const ControlPaints& paints) { in draw()
[all …]
/external/skqp/samplecode/
DSampleAARects.cpp67 SkPaint paints[] = { bluePaint, bmpPaint }; in onDrawContent() local
74 for (size_t p = 0; p < SK_ARRAY_COUNT(paints); ++p) { in onDrawContent()
76 paints[p].setStyle(stroke ? SkPaint::kStroke_Style : SkPaint::kFill_Style); in onDrawContent()
78 paints[p].setAntiAlias(a > 0); in onDrawContent()
79 paints[p].setAlpha(a > 1 ? 0x80 : 0xff); in onDrawContent()
86 canvas->drawRect(rect, paints[p]); in onDrawContent()
93 canvas->drawRect(rect, paints[p]); in onDrawContent()
100 canvas->drawRect(rect, paints[p]); in onDrawContent()
107 canvas->drawRect(rect, paints[p]); in onDrawContent()
116 canvas->drawRect(rect, paints[p]); in onDrawContent()
[all …]
DSampleAAGeometry.cpp538 void draw(SkCanvas* canvas, const ButtonPaints& paints) { in draw()
542 canvas->drawRect(fBounds, paints.fStates[fState]); in draw()
544 paints.fLabelFont, SkPaint(), SkTextUtils::kCenter_Align); in draw()
605 virtual void draw(SkCanvas* canvas, const ControlPaints& paints) { in draw()
609 canvas->drawRect(fBounds, paints.fOutline); in draw()
611 canvas->drawLine(fBounds.fLeft - 5, fYLo, fBounds.fRight + 5, fYLo, paints.fIndicator); in draw()
614 canvas->drawString(label, fBounds.fLeft + 5, fYLo - 5, paints.fValueFont, paints.fValue); in draw()
615 canvas->drawString(fName, fBounds.fLeft, fBounds.bottom() + 11, paints.fLabelFont, in draw()
616 paints.fLabel); in draw()
630 virtual void draw(SkCanvas* canvas, const ControlPaints& paints) { in draw()
[all …]
/external/skia/gm/
Dfilterfastbounds.cpp100 static void add_paint(SkTArray<SkPaint>* paints, sk_sp<SkImageFilter> filter) { in add_paint() argument
101 SkPaint& p = paints->push_back(); in add_paint()
107 static void create_paints(SkTArray<SkPaint>* paints, sk_sp<SkImageFilter> source) { in create_paints() argument
115 add_paint(paints, std::move(scaleMIF)); in create_paints()
125 add_paint(paints, std::move(rotMIF)); in create_paints()
133 add_paint(paints, std::move(tileIF)); in create_paints()
140 add_paint(paints, std::move(dsif)); in create_paints()
147 add_paint(paints, std::move(dsif)); in create_paints()
150 add_paint(paints, SkImageFilters::Blur(3, 3, source)); in create_paints()
151 add_paint(paints, SkImageFilters::Offset(15, 15, source)); in create_paints()
[all …]
Dcirculararcs.cpp173 SkTArray<SkPaint> paints; variable
175 paints.push_back();
177 paints.push_back().setStyle(SkPaint::kStroke_Style);
178 paints.back().setStrokeWidth(kS / 6.f);
180 paints.push_back().setStyle(SkPaint::kStroke_Style);
181 paints.back().setStrokeWidth(0.f);
183 paints.push_back().setStyle(SkPaint::kStrokeAndFill_Style);
184 paints.back().setStrokeWidth(kS / 6.f);
186 paints.push_back().setStyle(SkPaint::kStroke_Style);
187 paints.back().setStrokeWidth(kS / 6.f);
[all …]
Dgradtext.cpp112 SkPaint paints[2]; local
113 paints[0].setShader(make_grad(80.0f));
114 paints[1].setShader(make_grad2(80.0f));
122 for (const SkPaint& paint : paints) {
/external/skqp/gm/
Dfilterfastbounds.cpp86 static void add_paint(SkTArray<SkPaint>* paints, sk_sp<SkImageFilter> filter) { in add_paint() argument
87 SkPaint& p = paints->push_back(); in add_paint()
93 static void create_paints(SkTArray<SkPaint>* paints, sk_sp<SkImageFilter> source) { in create_paints() argument
101 add_paint(paints, std::move(scaleMIF)); in create_paints()
111 add_paint(paints, std::move(rotMIF)); in create_paints()
119 add_paint(paints, std::move(tileIF)); in create_paints()
131 add_paint(paints, std::move(dsif)); in create_paints()
142 add_paint(paints, std::move(dsif)); in create_paints()
145 add_paint(paints, SkBlurImageFilter::Make(3, 3, source)); in create_paints()
146 add_paint(paints, SkOffsetImageFilter::Make(15, 15, source)); in create_paints()
[all …]
Dcirculararcs.cpp163 SkTArray<SkPaint> paints; variable
165 paints.push_back();
167 paints.push_back().setStyle(SkPaint::kStroke_Style);
168 paints.back().setStrokeWidth(kS / 6.f);
170 paints.push_back().setStyle(SkPaint::kStroke_Style);
171 paints.back().setStrokeWidth(0.f);
173 paints.push_back().setStyle(SkPaint::kStrokeAndFill_Style);
174 paints.back().setStrokeWidth(kS / 6.f);
176 paints.push_back().setStyle(SkPaint::kStroke_Style);
177 paints.back().setStrokeWidth(kS / 6.f);
[all …]
Dgradtext.cpp111 SkPaint paints[2]; variable
112 paints[0].setShader(make_grad(80.0f));
113 paints[1].setShader(make_grad2(80.0f));
121 for (const SkPaint& paint : paints) {
/external/skia/site/user/api/
Dskpaint_overview.md23 Unlike `SkCanvas`, paints do not maintain an internal stack of state
24 (i.e. there is no save/restore on a paint). However, paints are
34 This shows three different paints, each set up to draw in a different
35 style. Now the caller can intermix these paints freely, either using
41 paints support effects. These are subclasses of different aspects of
76 text. Speaking of which, paints are used not only for drawing text,
/external/skqp/site/user/api/
Dskpaint_overview.md23 Unlike `SkCanvas`, paints do not maintain an internal stack of state
24 (i.e. there is no save/restore on a paint). However, paints are
34 This shows three different paints, each set up to draw in a different
35 style. Now the caller can intermix these paints freely, either using
41 paints support effects. These are subclasses of different aspects of
76 text. Speaking of which, paints are used not only for drawing text,
DSkPaint_Reference.md182 Multiple colors are drawn either by using multiple paints or with objects like
526 Identical hashes guarantee that the paints are
527 equivalent, but differing hashes do not guarantee that the paints have differing
530 …aint</a>& a, const <a href='SkPaint_Reference#SkPaint'>SkPaint</a>& b) returns true for two paints,
/external/skia/tests/
DClearTest.cpp246 SkPaint paints[2]; in fullscreen_clear_with_layer_test() local
247 paints[0].setColor(SK_ColorGREEN); in fullscreen_clear_with_layer_test()
248 paints[1].setColor(SK_ColorGRAY); in fullscreen_clear_with_layer_test()
264 canvas->drawRect(rects[i], paints[i]); in fullscreen_clear_with_layer_test()
DGrShapeTest.cpp2064 SkPaint paints[4]; in DEF_TEST() local
2065 paints[1].setStyle(SkPaint::kStroke_Style); in DEF_TEST()
2066 paints[1].setStrokeWidth(5.f); in DEF_TEST()
2067 paints[2].setStyle(SkPaint::kStroke_Style); in DEF_TEST()
2068 paints[2].setStrokeWidth(0.f); in DEF_TEST()
2069 paints[3].setStyle(SkPaint::kStrokeAndFill_Style); in DEF_TEST()
2070 paints[3].setStrokeWidth(5.f); in DEF_TEST()
2072 auto compare = [r, &paints] (const SkPath& pathA, const SkPath& pathB, in DEF_TEST()
2078 for (const SkPaint& paint : paints) { in DEF_TEST()
/external/skqp/tests/
DClearTest.cpp244 SkPaint paints[2]; in fullscreen_clear_with_layer_test() local
245 paints[0].setColor(SK_ColorGREEN); in fullscreen_clear_with_layer_test()
246 paints[1].setColor(SK_ColorGRAY); in fullscreen_clear_with_layer_test()
262 canvas->drawRect(rects[i], paints[i]); in fullscreen_clear_with_layer_test()
DGrShapeTest.cpp2064 SkPaint paints[4]; in DEF_TEST() local
2065 paints[1].setStyle(SkPaint::kStroke_Style); in DEF_TEST()
2066 paints[1].setStrokeWidth(5.f); in DEF_TEST()
2067 paints[2].setStyle(SkPaint::kStroke_Style); in DEF_TEST()
2068 paints[2].setStrokeWidth(0.f); in DEF_TEST()
2069 paints[3].setStyle(SkPaint::kStrokeAndFill_Style); in DEF_TEST()
2070 paints[3].setStrokeWidth(5.f); in DEF_TEST()
2072 auto compare = [r, &paints] (const SkPath& pathA, const SkPath& pathB, in DEF_TEST()
2078 for (const SkPaint& paint : paints) { in DEF_TEST()
/external/skqp/experimental/docs/
DanimationCommon.js219 var parent = paints[paint.paint];
311 for (var prop in paints) {
312 flattenPaint(paints[prop]);
DexampleSlides.js279 var paints = { variable
/external/skia/experimental/docs/
DanimationCommon.js219 var parent = paints[paint.paint];
311 for (var prop in paints) {
312 flattenPaint(paints[prop]);
DexampleSlides.js279 var paints = { variable
/external/skqp/site/user/modules/
Dcanvaskit.md257 let paints = [paint];
262 for (let i = 0; i < paints.length && i < paths.length; i++) {
263 canvas.drawPath(paths[i], paints[i]);
282 paints.push(paint);
/external/skia/site/user/modules/
Dcanvaskit.md280 let paints = [paint];
285 for (let i = 0; i < paints.length && i < paths.length; i++) {
286 canvas.drawPath(paths[i], paints[i]);
305 paints.push(paint);
/external/skqp/docs/
Dspelling.txt160 pack packed packing padding painted paints pair paired pairs parabola parabolic parallel
DSkPaint_Reference.bmh33 Multiple colors are drawn either by using multiple paints or with objects like
208 #Line # compares paints for equality ##
232 #Line # compares paints for inequality ##

12