Home
last modified time | relevance | path

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

1234567

/third_party/skia/samplecode/
DSampleAARects.cpp57 SkPaint paints[] = { bluePaint, bmpPaint }; in onDrawContent() local
64 for (size_t p = 0; p < SK_ARRAY_COUNT(paints); ++p) { in onDrawContent()
66 paints[p].setStyle(stroke ? SkPaint::kStroke_Style : SkPaint::kFill_Style); in onDrawContent()
68 paints[p].setAntiAlias(a > 0); in onDrawContent()
69 paints[p].setAlpha(a > 1 ? 0x80 : 0xff); in onDrawContent()
76 canvas->drawRect(rect, paints[p]); in onDrawContent()
83 canvas->drawRect(rect, paints[p]); in onDrawContent()
90 canvas->drawRect(rect, paints[p]); in onDrawContent()
97 canvas->drawRect(rect, paints[p]); in onDrawContent()
106 canvas->drawRect(rect, paints[p]); in onDrawContent()
[all …]
/third_party/flutter/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 …]
/third_party/flutter/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) {
/third_party/skia/gm/
Dfilterfastbounds.cpp96 static void add_paint(SkTArray<SkPaint>* paints, sk_sp<SkImageFilter> filter) { in add_paint() argument
97 SkPaint& p = paints->push_back(); in add_paint()
103 static void create_paints(SkTArray<SkPaint>* paints, sk_sp<SkImageFilter> source) { in create_paints() argument
112 add_paint(paints, std::move(scaleMIF)); in create_paints()
122 add_paint(paints, std::move(rotMIF)); in create_paints()
130 add_paint(paints, std::move(tileIF)); in create_paints()
137 add_paint(paints, std::move(dsif)); in create_paints()
144 add_paint(paints, std::move(dsif)); in create_paints()
147 add_paint(paints, SkImageFilters::Blur(3, 3, source)); in create_paints()
148 add_paint(paints, SkImageFilters::Offset(15, 15, source)); in create_paints()
[all …]
Dcirculararcs.cpp180 SkTArray<SkPaint> paints; variable
182 paints.push_back();
184 paints.push_back().setStroke(true);
185 paints.back().setStrokeWidth(kS / 6.f);
187 paints.push_back().setStroke(true);
188 paints.back().setStrokeWidth(0.f);
190 paints.push_back().setStyle(SkPaint::kStrokeAndFill_Style);
191 paints.back().setStrokeWidth(kS / 6.f);
193 paints.push_back().setStroke(true);
194 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) {
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dimage_rtl_test.dart68 expect(find.byType(Container), paints
82 expect(find.byType(Container), isNot(paints..scale()..scale()));
107 expect(find.byType(Container), paints
118 expect(find.byType(Container), isNot(paints..scale()));
142 expect(find.byType(Container), paints
153 expect(find.byType(Container), isNot(paints..scale()));
177 expect(find.byType(Container), paints
188 expect(find.byType(Container), isNot(paints..scale()));
212 expect(find.byType(Container), paints
219 expect(find.byType(Container), isNot(paints..scale()..scale()));
[all …]
Doverscroll_indicator_test.dart13 final Matcher doesNotOverscroll = isNot(paints..circle());
55 expect(painter, paints..circle(color: const Color(0x0DFFFFFF)));
88 expect(outerPainter, paints..circle());
89 expect(innerPainter, paints..circle());
106 expect(painter, paints..circle(x: 400.0));
108 expect(painter, paints..something((Symbol method, List<dynamic> arguments) {
117 expect(painter, paints..something((Symbol method, List<dynamic> arguments) {
149 expect(painter, paints..something((Symbol method, List<dynamic> arguments) {
180 …expect(painter, paints..save()..circle()..restore()..save()..scale(y: -1.0)..restore()..restore());
201 …expect(painter, paints..save()..scale(y: -1.0)..restore()..save()..circle()..restore()..restore());
[all …]
Dphysical_model_test.dart156 // ─────────── (red rect, paints second, child)
158 // ─────────── (green rect, paints first)
184 // ─────────────── (green rect, paints second)
185 // ─────────── │ (blue rect, paints first)
216 // ─────────────── (green rect, paints first)
217 // │ ─────────── (blue rect, paints second)
248 // ─────────────── (brown rect, paints first)
249 // │ ─────────── (red circle, paints second)
287 // ─────────────── (brown rect, paints first)
288 // │ ─────────── (red circle, paints second)
[all …]
Dbox_decoration_test.dart124 testWidgets('BoxDecoration paints its border correctly', (WidgetTester tester) async {
142 expect(find.byKey(key), paints
146 expect(find.byKey(key), paints
153 expect(find.byKey(key), paints..path(color: green, style: PaintingStyle.fill));
156 expect(find.byKey(key), paints..path(color: green, style: PaintingStyle.fill));
159 expect(find.byKey(key), paints..path(color: green, style: PaintingStyle.fill));
162 expect(find.byKey(key), paints..path(color: green, style: PaintingStyle.fill));
168 expect(find.byKey(key), paints
174 testWidgets('BoxDecoration paints its border correctly', (WidgetTester tester) async {
180 // There's not currently a way to verify that this paints the same size as the others,
[all …]
Dbanner_test.dart26 test('A Banner with a location of topStart paints in the top left (LTR)', () {
54 test('A Banner with a location of topStart paints in the top right (RTL)', () {
82 test('A Banner with a location of topEnd paints in the top right (LTR)', () {
110 test('A Banner with a location of topEnd paints in the top left (RTL)', () {
138 test('A Banner with a location of bottomStart paints in the bottom left (LTR)', () {
166 test('A Banner with a location of bottomStart paints in the bottom right (RTL)', () {
194 test('A Banner with a location of bottomEnd paints in the bottom right (LTR)', () {
222 test('A Banner with a location of bottomEnd paints in the bottom left (RTL)', () {
258 expect(find.byType(CustomPaint), paints
273 expect(find.byType(CheckedModeBanner), paints
Dplaceholder_test.dart26 …expect(tester.renderObject(find.byType(Placeholder)), paints..path(color: const Color(0xFF455A64))…
28 …expect(tester.renderObject(find.byType(Placeholder)), paints..path(color: const Color(0xFF00FF00))…
33 expect(tester.renderObject(find.byType(Placeholder)), paints..path(strokeWidth: 2.0));
35 expect(tester.renderObject(find.byType(Placeholder)), paints..path(strokeWidth: 10.0));
/third_party/flutter/flutter/packages/flutter/test/material/
Dcheckbox_test.dart312 expect(getCheckboxRenderer(), isNot(paints..path())); // checkmark is rendered as a path
313 expect(getCheckboxRenderer(), isNot(paints..line())); // null is rendered as a line (a "dash")
314 expect(getCheckboxRenderer(), paints..drrect()); // empty checkbox
318 expect(getCheckboxRenderer(), paints..path()); // checkmark is rendered as a path
322 expect(getCheckboxRenderer(), isNot(paints..path())); // checkmark is rendered as a path
323 expect(getCheckboxRenderer(), isNot(paints..line())); // null is rendered as a line (a "dash")
324 expect(getCheckboxRenderer(), paints..drrect()); // empty checkbox
328 expect(getCheckboxRenderer(), paints..line()); // null is rendered as a line (a "dash")
332 expect(getCheckboxRenderer(), paints..path()); // checkmark is rendered as a path
336 expect(getCheckboxRenderer(), paints..line()); // null is rendered as a line (a "dash")
[all …]
Dcheckbox_list_tile_test.dart53 …expect(getCheckboxListTileRenderer(), paints..path(color: const Color(0xFFFFFFFF))); // paints's c…
57 …expect(getCheckboxListTileRenderer(), paints..path(color: const Color(0xFF000000))); // paints's c…
79 …expect(getCheckboxListTileRenderer(), paints..rrect(color: const Color(0xFF000000))); // paints's …
83 …expect(getCheckboxListTileRenderer(), paints..rrect(color: const Color(0xFFFFFFFF))); // paints's …
Dslider_test.dart628 …expect(sliderBox, paints..rect(color: sliderTheme.activeTrackColor)..rect(color: sliderTheme.inact…
629 expect(sliderBox, paints..circle(color: sliderTheme.thumbColor));
630 expect(sliderBox, isNot(paints..circle(color: sliderTheme.disabledThumbColor)));
631 expect(sliderBox, isNot(paints..rect(color: sliderTheme.disabledActiveTrackColor)));
632 expect(sliderBox, isNot(paints..rect(color: sliderTheme.disabledInactiveTrackColor)));
633 expect(sliderBox, isNot(paints..circle(color: sliderTheme.activeTickMarkColor)));
634 expect(sliderBox, isNot(paints..circle(color: sliderTheme.inactiveTickMarkColor)));
638 … expect(sliderBox, paints..rect(color: customColor1)..rect(color: sliderTheme.inactiveTrackColor));
639 expect(sliderBox, paints..circle(color: customColor1));
640 expect(sliderBox, isNot(paints..circle(color: sliderTheme.thumbColor)));
[all …]
Dslider_theme_test.dart109 paints
131 paints
235 paints
251 paints
267 // With no touch, paints only the thumb.
270 paints
284 // After touch, paints thumb and overlay.
287 paints
305 // After the gesture is up and complete, it again paints only the thumb.
308 paints
[all …]
Dscrollbar_paint_test.dart31 expect(find.byType(Scrollbar), isNot(paints..rect()));
33 …expect(find.byType(Scrollbar), paints..rect(rect: const Rect.fromLTRB(800.0 - 6.0, 1.5, 800.0, 91.…
41 expect(find.byType(Scrollbar), isNot(paints..rect()));
43 expect(find.byType(Scrollbar), paints..rect(rect: const Rect.fromLTRB(0.0, 1.5, 6.0, 91.5)));
70 expect(find.byType(Scrollbar), paints..rect(
105 expect(find.byType(Scrollbar), isNot(paints..rect()));
Drange_slider_test.dart1035 expect(sliderBox, paints
1039 expect(sliderBox, paints
1042 expect(sliderBox, isNot(paints..circle(color: sliderTheme.disabledThumbColor)));
1043 expect(sliderBox, isNot(paints..rect(color: sliderTheme.disabledActiveTrackColor)));
1044 expect(sliderBox, isNot(paints..rect(color: sliderTheme.disabledInactiveTrackColor)));
1045 expect(sliderBox, isNot(paints..circle(color: sliderTheme.activeTickMarkColor)));
1046 expect(sliderBox, isNot(paints..circle(color: sliderTheme.inactiveTickMarkColor)));
1060 paints
1066 paints
1069 expect(sliderBox, isNot(paints..circle(color: sliderTheme.thumbColor)));
[all …]
Dprogress_indicator_test.dart67 paints
90 paints
117 paints
144 paints
171 paints
224 expect(find.byType(CircularProgressIndicator), paints..arc(strokeWidth: 4.0));
228 expect(find.byType(CircularProgressIndicator), paints..arc(strokeWidth: 16.0));
240 expect(find.byType(CircularProgressIndicator), paints..arc(color: blue));
248 expect(find.byType(CircularProgressIndicator), paints..arc(color: green)..arc(color: blue));
319 paints
[all …]
/third_party/flutter/flutter/packages/flutter/test/rendering/
Ddebug_test.dart68 }, paints..rect(color: const Color(0x90909090)));
71 }, paints..path(color: const Color(0x900090FF))..path(color: const Color(0xFF0090FF)));
74 …}, paints..rect(rect: const Rect.fromLTRB(10.0, 10.0, 20.0, 20.0), color: const Color(0x90909090))…
96 …expect(b.debugPaint, paints..rect(color: const Color(0xFF00FFFF))..rect(color: const Color(0x90909…
97 expect(b.debugPaint, isNot(paints..path()));
98 …expect(s.debugPaint, paints..circle(hasMaskFilter: true)..line(hasMaskFilter: true)..path(hasMaskF…
100 expect(s.debugPaint, isNot(paints..rect()));
120 expect(s.debugPaint, paints..rect(color: const Color(0x90909090)));
121 …expect(s.debugPaint, isNot(paints..circle(hasMaskFilter: true)..line(hasMaskFilter: true)..path(ha…
123 …expect(b.debugPaint, paints..rect(color: const Color(0xFF00FFFF))..path(color: const Color(0x90009…
[all …]
Ddebug_overflow_indicator_test.dart20 expect(find.byType(UnconstrainedBox), isNot(paints..rect()));
40 expect(find.byType(UnconstrainedBox), paints..rect());
54 expect(find.byType(UnconstrainedBox), paints..rect());
69 expect(find.byType(UnconstrainedBox), isNot(paints..rect()));
Dflex_overflow_test.dart22 expect(find.byType(Column), isNot(paints..rect()));
39 expect(find.byType(Column), paints..rect());
54 expect(find.byType(Column), isNot(paints..rect()));
Dlayers_test.dart356 /// Adds the layers to a container where A paints before B.
386 // ───────────── (LayerA, paints first)
387 // │ ───────────── (LayerB, paints second)
408 // ───────────── (LayerA, paints first)
409 // │ ───────────── (LayerB, paints second)
432 // ────────── (LayerA, paints first)
433 // │ ─────────── (LayerB, paints second)
454 // ─────── (Child of A, paints second)
456 // ─────────── (LayerA, paints first)
457 // │ ──────────── (LayerB, paints third)
[all …]

1234567