/external/skia/samplecode/ |
D | SampleAARects.cpp | 68 SkPaint paints[] = { bluePaint, bmpPaint }; in onDrawContent() local 75 for (size_t p = 0; p < SK_ARRAY_COUNT(paints); ++p) { in onDrawContent() 77 paints[p].setStyle(stroke ? SkPaint::kStroke_Style : SkPaint::kFill_Style); in onDrawContent() 79 paints[p].setAntiAlias(a > 0); in onDrawContent() 80 paints[p].setAlpha(a > 1 ? 0x80 : 0xff); in onDrawContent() 87 canvas->drawRect(rect, paints[p]); in onDrawContent() 94 canvas->drawRect(rect, paints[p]); in onDrawContent() 101 canvas->drawRect(rect, paints[p]); in onDrawContent() 108 canvas->drawRect(rect, paints[p]); in onDrawContent() 117 canvas->drawRect(rect, paints[p]); in onDrawContent() [all …]
|
D | SampleAAGeometry.cpp | 537 void draw(SkCanvas* canvas, const ButtonPaints& paints) { in draw() 541 canvas->drawRect(fBounds, paints.fStates[fState]); in draw() 542 canvas->drawText(&fLabel, 1, fBounds.centerX(), fBounds.fBottom - 5, paints.fLabel); in draw() 600 virtual void draw(SkCanvas* canvas, const ControlPaints& paints) { in draw() 604 canvas->drawRect(fBounds, paints.fOutline); in draw() 606 canvas->drawLine(fBounds.fLeft - 5, fYLo, fBounds.fRight + 5, fYLo, paints.fIndicator); in draw() 609 canvas->drawText(label.c_str(), label.size(), fBounds.fLeft + 5, fYLo - 5, paints.fValue); in draw() 611 paints.fLabel); in draw() 625 virtual void draw(SkCanvas* canvas, const ControlPaints& paints) { in draw() 626 UniControl::draw(canvas, paints); in draw() [all …]
|
/external/skia/gm/ |
D | gaussianedge.cpp | 111 SkPaint paints[kNumBaseCols]; in DrawRow() local 125 paints[0] = basePaint; in DrawRow() 129 paints[1] = basePaint; in DrawRow() 130 paints[1].setStyle(SkPaint::kStroke_Style); in DrawRow() 135 paints[1].setStrokeWidth(SkIntToScalar(blurRad)); in DrawRow() 140 paints[1].setStrokeWidth(blurRad + 2.0f * pad); in DrawRow() 141 paints[1].setColor(SkColorSetARGB(255, (4 * blurRad) >> 8, (4 * blurRad) & 0xff, in DrawRow() 146 paints[2] = basePaint; in DrawRow() 147 paints[2].setStyle(SkPaint::kStrokeAndFill_Style); in DrawRow() 152 paints[2].setStrokeWidth(SkIntToScalar(blurRad)); in DrawRow() [all …]
|
D | filterfastbounds.cpp | 86 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 …]
|
D | circulararcs.cpp | 163 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 …]
|
/external/skia/experimental/ChromeUtils/ |
D | SkBorder.cpp | 20 SkBorder::SkBorder(const SkPaint paints[4], in SkBorder() 25 fPaints[i] = paints[i]; in SkBorder()
|
D | SkBorder.h | 69 SkBorder(const SkPaint paints[4], const SkScalar widths[4], const BorderStyle styles[4]);
|
/external/skia/site/user/api/ |
D | skpaint.md | 23 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/skia/experimental/docs/ |
D | animationCommon.js | 219 var parent = paints[paint.paint]; 311 for (var prop in paints) { 312 flattenPaint(paints[prop]);
|
D | exampleSlides.js | 279 var paints = { variable
|
/external/skia/tests/ |
D | GrShapeTest.cpp | 1778 SkPaint paints[4]; in test_short_path_keys() local 1779 paints[1].setStyle(SkPaint::kStroke_Style); in test_short_path_keys() 1780 paints[1].setStrokeWidth(5.f); in test_short_path_keys() 1781 paints[2].setStyle(SkPaint::kStroke_Style); in test_short_path_keys() 1782 paints[2].setStrokeWidth(0.f); in test_short_path_keys() 1783 paints[3].setStyle(SkPaint::kStrokeAndFill_Style); in test_short_path_keys() 1784 paints[3].setStrokeWidth(5.f); in test_short_path_keys() 1786 auto compare = [r, &paints] (const SkPath& pathA, const SkPath& pathB, in test_short_path_keys() 1792 for (const SkPaint& paint : paints) { in test_short_path_keys()
|
/external/jline/src/src/test/resources/jline/example/ |
D | english.gz |
|