Home
last modified time | relevance | path

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

/external/skia/docs/examples/
DPaint_refShader.cpp7 SkPaint paint1, paint2; in draw() local
8 paint1.setShader(SkShaders::Empty()); in draw()
9 SkDebugf("shader unique: %s\n", paint1.getShader()->unique() ? "true" : "false"); in draw()
10 paint2.setShader(paint1.refShader()); in draw()
11 SkDebugf("shader unique: %s\n", paint1.getShader()->unique() ? "true" : "false"); in draw()
DPaint_refImageFilter.cpp7 SkPaint paint1, paint2; in draw() local
8 paint1.setImageFilter(SkImageFilters::Offset(25, 25, nullptr)); in draw()
9 SkDebugf("image filter unique: %s\n", paint1.getImageFilter()->unique() ? "true" : "false"); in draw()
10 paint2.setImageFilter(paint1.refImageFilter()); in draw()
11 SkDebugf("image filter unique: %s\n", paint1.getImageFilter()->unique() ? "true" : "false"); in draw()
DPaint_refMaskFilter.cpp7 SkPaint paint1, paint2; in draw() local
8 paint1.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, 1)); in draw()
9 SkDebugf("mask filter unique: %s\n", paint1.getMaskFilter()->unique() ? "true" : "false"); in draw()
10 paint2.setMaskFilter(paint1.refMaskFilter()); in draw()
11 SkDebugf("mask filter unique: %s\n", paint1.getMaskFilter()->unique() ? "true" : "false"); in draw()
DPaint_refColorFilter.cpp7 SkPaint paint1, paint2; in draw() local
8 paint1.setColorFilter(SkColorFilters::Blend(0xFFFF0000, SkBlendMode::kSrcATop)); in draw()
9 SkDebugf("color filter unique: %s\n", paint1.getColorFilter()->unique() ? "true" : "false"); in draw()
10 paint2.setColorFilter(paint1.refColorFilter()); in draw()
11 SkDebugf("color filter unique: %s\n", paint1.getColorFilter()->unique() ? "true" : "false"); in draw()
DPaint_refPathEffect.cpp7 SkPaint paint1, paint2; in draw() local
9 paint1.setPathEffect(SkDashPathEffect::Make(intervals, std::size(intervals), 10)); in draw()
10 SkDebugf("path effect unique: %s\n", paint1.getPathEffect()->unique() ? "true" : "false"); in draw()
11 paint2.setPathEffect(paint1.refPathEffect()); in draw()
12 SkDebugf("path effect unique: %s\n", paint1.getPathEffect()->unique() ? "true" : "false"); in draw()
DPaint_equal_operator.cpp7 SkPaint paint1, paint2; in draw() local
8 paint1.setColor(SK_ColorRED); in draw()
10 SkDebugf("paint1 %c= paint2\n", paint1 == paint2 ? '=' : '!'); in draw()
12 paint1.setPathEffect(SkDashPathEffect::Make(intervals, 2, 2.5f)); in draw()
14 SkDebugf("paint1 %c= paint2\n", paint1 == paint2 ? '=' : '!'); in draw()
DPaint_refTypeface.cpp8 SkPaint paint1, paint2;
9 paint1.setTypeface(SkTypeface::MakeFromName("monospace",
13 paint1.getTypeface() == paint2.getTypeface() ? '=' : '!');
14 paint2.setTypeface(paint1.refTypeface());
16 paint1.getTypeface() == paint2.getTypeface() ? '=' : '!');
Dskpaint_skia.cpp8 SkPaint paint1, paint2, paint3; in draw() local
10 paint1.setAntiAlias(true); in draw()
11 paint1.setColor(SkColorSetRGB(255, 0, 0)); in draw()
12 paint1.setStyle(SkPaint::kFill_Style); in draw()
28 canvas->drawTextBlob(blob1.get(), 20.0f, 64.0f, paint1); in draw()
DPaint_reset.cpp7 SkPaint paint1, paint2; in draw() local
8 paint1.setColor(SK_ColorRED); in draw()
9 paint1.reset(); in draw()
10 SkDebugf("paint1 %c= paint2", paint1 == paint2 ? '=' : '!'); in draw()
DPaint_notequal_operator.cpp7 SkPaint paint1, paint2; in draw() local
8 paint1.setColor(SK_ColorRED); in draw()
10 SkDebugf("paint1 %c= paint2\n", paint1 == paint2 ? '=' : '!'); in draw()
11 SkDebugf("paint1 %c= paint2\n", paint1 != paint2 ? '!' : '='); in draw()
DPaint_copy_operator.cpp7 SkPaint paint1, paint2; in draw() local
8 paint1.setColor(SK_ColorRED); in draw()
9 paint2 = paint1; in draw()
10 SkDebugf("SK_ColorRED %c= paint1.getColor()\n", SK_ColorRED == paint1.getColor() ? '=' : '!'); in draw()
DPaint_copy_const_SkPaint.cpp7 SkPaint paint1; in draw() local
8 paint1.setColor(SK_ColorRED); in draw()
9 SkPaint paint2(paint1); in draw()
11 SkDebugf("SK_ColorRED %c= paint1.getColor()\n", SK_ColorRED == paint1.getColor() ? '=' : '!'); in draw()
Dtext_rendering.cpp23 SkPaint paint1, paint2, paint3; in draw() local
25 paint1.setAntiAlias(true); in draw()
26 paint1.setColor(SkColorSetARGB(0xFF, 0x42, 0x85, 0xF4)); in draw()
37 canvas->drawTextBlob(blob1.get(), 20.0f, 64.0f, paint1); in draw()
DPaint_setEmbeddedBitmapText.cpp8 SkPaint paint1, paint2;
9 paint1.setEmbeddedBitmapText(true);
11 SkDebugf("paint1 %c= paint2\n", paint1 == paint2 ? '=' : '!');
DPaint_move_operator.cpp7 SkPaint paint1, paint2; in draw() local
8 paint1.setColor(SK_ColorRED); in draw()
9 paint2 = std::move(paint1); in draw()
DPaint_setDither.cpp8 SkPaint paint1, paint2;
9 paint1.setDither(true);
11 SkDebugf("paint1 %c= paint2\n", paint1 == paint2 ? '=' : '!');
DPaint_setFakeBoldText.cpp8 SkPaint paint1, paint2;
9 paint1.setFakeBoldText(true);
11 SkDebugf("paint1 %c= paint2\n", paint1 == paint2 ? '=' : '!');
DPaint_setLCDRenderText.cpp8 SkPaint paint1, paint2;
9 paint1.setLCDRenderText(true);
11 SkDebugf("paint1 %c= paint2\n", paint1 == paint2 ? '=' : '!');
DPaint_setAntiAlias.cpp8 SkPaint paint1, paint2;
9 paint1.setAntiAlias(true);
11 SkDebugf("paint1 %c= paint2\n", paint1 == paint2 ? '=' : '!');
DPaint_setSubpixelText.cpp8 SkPaint paint1, paint2;
9 paint1.setSubpixelText(true);
11 SkDebugf("paint1 %c= paint2\n", paint1 == paint2 ? '=' : '!');
DPaint_setHinting.cpp8 SkPaint paint1, paint2;
10 SkDebugf("paint1 %c= paint2\n", paint1 == paint2 ? '=' : ':');
/external/skia/gm/
Dcrbug_892988.cpp20 SkPaint paint1; variable
21 paint1.setStyle(SkPaint::kStroke_Style);
22 paint1.setStrokeWidth(1.f);
23 paint1.setAntiAlias(true);
24 canvas->drawRect(SkRect::MakeLTRB(11.5, 0.5, 245.5, 245.5), paint1);
Dgradients.cpp538 SkPaint paint1, paint2, paint3; in onDraw() local
539 paint1.setStyle(SkPaint::kFill_Style); in onDraw()
557 paint1.setShader(SkGradientShader::MakeSweep(cx, cy, sweep_colors, in onDraw()
568 paint1.setDither(fDither); in onDraw()
572 canvas->drawCircle(cx, cy, radius, paint1); in onDraw()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowCanvasTest.java269 Paint paint1 = new Paint(); in drawCircle_shouldRecordCirclePaintHistoryEvents() local
271 canvas.drawCircle(4, 5, 6, paint1); in drawCircle_shouldRecordCirclePaintHistoryEvents()
282 assertThat(shadowCanvas.getDrawnCircle(1).paint).isSameInstanceAs(paint1); in drawCircle_shouldRecordCirclePaintHistoryEvents()
291 Paint paint1 = new Paint(); in drawArc_shouldRecordArcHistoryEvents() local
293 canvas.drawArc(oval1, 3f, 4f, false, paint1); in drawArc_shouldRecordArcHistoryEvents()
306 assertThat(shadowCanvas.getDrawnArc(1).paint).isSameInstanceAs(paint1); in drawArc_shouldRecordArcHistoryEvents()
351 Paint paint1 = new Paint(); in drawLine_shouldRecordLineHistoryEvents() local
352 paint1.setColor(Color.WHITE); in drawLine_shouldRecordLineHistoryEvents()
353 paint1.setStrokeWidth(2.0f); in drawLine_shouldRecordLineHistoryEvents()
356 canvas.drawLine(5f, 6f, 7f, 8f, paint1); in drawLine_shouldRecordLineHistoryEvents()
[all …]
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowCanvasTest.java301 Paint paint1 = new Paint(); in drawCircle_shouldRecordCirclePaintHistoryEvents() local
303 canvas.drawCircle(4, 5, 6, paint1); in drawCircle_shouldRecordCirclePaintHistoryEvents()
314 assertThat(shadowCanvas.getDrawnCircle(1).paint).isSameInstanceAs(paint1); in drawCircle_shouldRecordCirclePaintHistoryEvents()
323 Paint paint1 = new Paint(); in drawArc_shouldRecordArcHistoryEvents() local
325 canvas.drawArc(oval1, 3f, 4f, false, paint1); in drawArc_shouldRecordArcHistoryEvents()
338 assertThat(shadowCanvas.getDrawnArc(1).paint).isSameInstanceAs(paint1); in drawArc_shouldRecordArcHistoryEvents()
392 Paint paint1 = new Paint(); in drawLine_shouldRecordLineHistoryEvents() local
393 paint1.setColor(Color.WHITE); in drawLine_shouldRecordLineHistoryEvents()
394 paint1.setStrokeWidth(2.0f); in drawLine_shouldRecordLineHistoryEvents()
397 canvas.drawLine(5f, 6f, 7f, 8f, paint1); in drawLine_shouldRecordLineHistoryEvents()
[all …]