/third_party/skia/samplecode/ |
D | SampleAARects.cpp | 57 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/ |
D | SampleAARects.cpp | 56 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/ |
D | filterfastbounds.cpp | 100 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 …]
|
D | circulararcs.cpp | 173 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 …]
|
D | gradtext.cpp | 112 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/ |
D | filterfastbounds.cpp | 96 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 …]
|
D | circulararcs.cpp | 180 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 …]
|
D | gradtext.cpp | 112 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/ |
D | image_rtl_test.dart | 68 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 …]
|
D | overscroll_indicator_test.dart | 13 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 …]
|
D | physical_model_test.dart | 156 // ─────────── (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 …]
|
D | box_decoration_test.dart | 124 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 …]
|
D | banner_test.dart | 26 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
|
D | placeholder_test.dart | 26 …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/ |
D | checkbox_test.dart | 312 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 …]
|
D | checkbox_list_tile_test.dart | 53 …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 …
|
D | slider_test.dart | 628 …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 …]
|
D | slider_theme_test.dart | 109 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 …]
|
D | scrollbar_paint_test.dart | 31 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()));
|
D | range_slider_test.dart | 1035 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 …]
|
D | progress_indicator_test.dart | 67 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/ |
D | debug_test.dart | 68 }, 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 …]
|
D | debug_overflow_indicator_test.dart | 20 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()));
|
D | flex_overflow_test.dart | 22 expect(find.byType(Column), isNot(paints..rect())); 39 expect(find.byType(Column), paints..rect()); 54 expect(find.byType(Column), isNot(paints..rect()));
|
D | layers_test.dart | 356 /// 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 …]
|