/third_party/skia/src/gpu/ops/ |
H A D | PathStencilCoverOp.h | 32 GrPaint&& paint, in PathStencilCoverOp() 42 , fColor(paint.getColor4f()) in PathStencilCoverOp() 43 , fProcessors(std::move(paint)) { in PathStencilCoverOp() 54 GrPaint&& paint, in PathStencilCoverOp() 64 , fColor(paint.getColor4f()) in PathStencilCoverOp() 65 , fProcessors(std::move(paint)) { in PathStencilCoverOp() 29 PathStencilCoverOp(SkArenaAlloc* arena, const SkMatrix& viewMatrix, const SkPath& path, GrPaint&& paint, GrAAType aaType, FillPathFlags pathFlags, const SkRect& drawBounds) PathStencilCoverOp() argument 51 PathStencilCoverOp(const PathDrawList* pathDrawList, int totalCombinedVerbCnt, int pathCount, GrPaint&& paint, GrAAType aaType, FillPathFlags pathFlags, const SkRect& drawBounds) PathStencilCoverOp() argument
|
/third_party/skia/samplecode/ |
H A D | SampleAnimatedText.cpp | 27 const SkFont& font, const SkPaint& paint) { in DrawTheText() 30 canvas->drawSimpleText(text, length, SkTextEncoding::kUTF8, x, y, f, paint); in DrawTheText() 64 SkPaint paint; variable 65 paint.setAntiAlias(true); 76 canvas->drawImageRect(image.get(), rect, rect, sampling, &paint, 92 DrawTheText(canvas, text, length, SkIntToScalar(110), y, font, paint); 26 DrawTheText(SkCanvas* canvas, const char text[], size_t length, SkScalar x, SkScalar y, const SkFont& font, const SkPaint& paint) DrawTheText() argument
|
/third_party/skia/tests/ |
H A D | DefaultPathRendererTest.cpp | 94 GrPaint paint; in run_test() local 98 paint.setColorFragmentProcessor(std::move(fp)); in run_test() 100 sdc->drawPath(nullptr, std::move(paint), GrAA::kNo, SkMatrix::I(), invPath, style); in run_test() 112 GrPaint paint; in run_test() local 116 paint.setColorFragmentProcessor(std::move(fp)); in run_test() 118 sdc->drawPath(nullptr, std::move(paint), GrAA::kNo, in run_test()
|
H A D | Skbug6653.cpp | 37 SkPaint paint; in test_bug_6653() local 38 paint.setColor(SK_ColorWHITE); in test_bug_6653() 39 paint.setStrokeWidth(5); in test_bug_6653() 40 paint.setStyle(SkPaint::kStroke_Style); in test_bug_6653() 56 s1->getCanvas()->drawOval(rect, paint); in test_bug_6653() 73 s4->getCanvas()->drawOval(rect, paint); in test_bug_6653()
|
H A D | RecorderTest.cpp | 60 SkPaint paint; in DEF_TEST() local 61 paint.setShader(SkShaders::Empty()); in DEF_TEST() 63 REPORTER_ASSERT(r, paint.getShader()->unique()); in DEF_TEST() 67 recorder.saveLayer(&bounds, &paint); in DEF_TEST() 68 REPORTER_ASSERT(r, !paint.getShader()->unique()); in DEF_TEST() 70 REPORTER_ASSERT(r, paint.getShader()->unique()); in DEF_TEST()
|
H A D | HighContrastFilterTest.cpp | 28 SkPaint paint; in DEF_TEST() local 29 paint.setColor(SK_ColorBLUE); in DEF_TEST() 32 canvasPaint.drawRect(r, paint); in DEF_TEST() 34 paint.setColorFilter(SkHighContrastFilter::Make(config)); in DEF_TEST() 35 canvasFilter.drawRect(r, paint); in DEF_TEST() 43 paint.getColorFilter()->filterColor(paintColor)); in DEF_TEST()
|
/third_party/skia/gm/ |
H A D | bitmappremul.cpp | 54 SkPaint paint; in make_argb4444_gradient() local 55 paint.setBlendMode(SkBlendMode::kSrc); in make_argb4444_gradient() 56 SkCanvas{ bitmap }.drawImage(make_argb8888_gradient(), 0, 0, SkSamplingOptions(), &paint); in make_argb4444_gradient() local 83 SkPaint paint; in make_argb4444_stripes() local 84 paint.setBlendMode(SkBlendMode::kSrc); in make_argb4444_stripes() 85 SkCanvas{ bitmap }.drawImage(make_argb8888_stripes(), 0, 0, SkSamplingOptions(), &paint); in make_argb4444_stripes() local
|
H A D | resizeimagefilter.cpp | 59 SkPaint paint; in draw() local 60 paint.setColor(0xFF00FF00); in draw() 63 canvas->drawOval(ovalRect, paint); in draw() 100 SkPaint paint; variable 101 paint.setColor(0xFF00FF00); 104 surfaceCanvas->drawOval(ovalRect, paint);
|
H A D | drawminibitmaprect.cpp | 55 SkPaint paint; in makebm() local 59 paint.setShader(SkGradientShader::MakeRadial( in makebm() 65 canvas->drawRect(rect, paint); in makebm() 107 SkPaint paint; variable 108 paint.setAntiAlias(fAA); 127 SkSamplingOptions(), &paint,
|
H A D | skbug1719.cpp | 64 SkPaint paint; in DEF_SIMPLE_GM_BG() local 65 paint.setAntiAlias(true); in DEF_SIMPLE_GM_BG() 66 paint.setColor(0xFF000000); in DEF_SIMPLE_GM_BG() 67 paint.setMaskFilter( in DEF_SIMPLE_GM_BG() 69 paint.setColorFilter(SkColorFilters::Blend(0xBFFFFFFF, SkBlendMode::kSrcIn)); in DEF_SIMPLE_GM_BG() 72 canvas->drawPath(drawPath, paint); in DEF_SIMPLE_GM_BG()
|
H A D | pathreverse.cpp | 18 * paint.setTextSize(SkIntToScalar(100)); 19 * paint.setTypeface(SkTypeface::CreateFromName("Hiragino Maru Gothic Pro")); 20 * paint.getTextPath("e", 1, 50, 50, &path); 54 SkPaint paint; in test_path() local 55 paint.setAntiAlias(true); in test_path() 56 canvas->drawPath(path, paint); in test_path() 58 paint.setStyle(SkPaint::kStroke_Style); in test_path() 59 paint.setColor(SK_ColorRED); in test_path() 60 canvas->drawPath(path, paint); in test_path()
|
H A D | compositor_quads.cpp | 136 const SkPaint& paint) { in draw_outset_line() 142 canvas->drawLine(mapped[1] - v, mapped[0] + v, paint); in draw_outset_line() 147 SkPaint paint; in draw_tile_boundaries() local 148 paint.setAntiAlias(true); in draw_tile_boundaries() 149 paint.setColor(SK_ColorRED); in draw_tile_boundaries() 150 paint.setStyle(SkPaint::kStroke_Style); in draw_tile_boundaries() 151 paint.setStrokeWidth(0.f); in draw_tile_boundaries() 154 draw_outset_line(canvas, local, pts, paint); in draw_tile_boundaries() 158 draw_outset_line(canvas, local, pts, paint); in draw_tile_boundaries() 164 SkPaint paint; in draw_clipping_boundaries() local 135 draw_outset_line(SkCanvas* canvas, const SkMatrix& local, const SkPoint pts[2], const SkPaint& paint) draw_outset_line() argument 870 SkPaint paint; drawAndReset() local 972 SkPaint paint; drawAndReset() local [all...] |
/third_party/skia/experimental/graphite/src/ |
H A D | DrawContext.cpp | 56 const PaintParams* paint) { in stencilAndFillPath() 58 fPendingDraws->stencilAndFillPath(localToDevice, shape, clip, order,paint); in stencilAndFillPath() 65 const PaintParams* paint) { in fillConvexPath() 67 fPendingDraws->fillConvexPath(localToDevice, shape, clip, order, paint); in fillConvexPath() 75 const PaintParams* paint) { in strokePath() 77 fPendingDraws->strokePath(localToDevice, shape, stroke, clip, order, paint); in strokePath() 52 stencilAndFillPath(const Transform& localToDevice, const Shape& shape, const Clip& clip, DrawOrder order, const PaintParams* paint) stencilAndFillPath() argument 61 fillConvexPath(const Transform& localToDevice, const Shape& shape, const Clip& clip, DrawOrder order, const PaintParams* paint) fillConvexPath() argument 70 strokePath(const Transform& localToDevice, const Shape& shape, const StrokeParams& stroke, const Clip& clip, DrawOrder order, const PaintParams* paint) strokePath() argument
|
/third_party/skia/bench/ |
H A D | ImageFilterCollapse.cpp | 42 SkPaint paint; variable 43 paint.setImageFilter(fImageFilter); 44 canvas->drawImage(fImage, 0, 0, SkSamplingOptions(), &paint); 57 SkPaint paint; in makeBitmap() local 63 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in makeBitmap() 65 surf->getCanvas()->drawPaint(paint); in makeBitmap()
|
H A D | MergeBench.cpp | 22 SkPaint paint; in make_bitmap() local 23 paint.setColor(0xFF884422); in make_bitmap() 26 surface->getCanvas()->drawSimpleText("g", 1, SkTextEncoding::kUTF8, 15, 55, font, paint); in make_bitmap() 73 SkPaint paint; variable 74 paint.setImageFilter(SkImageFilters::Merge(SkImageFilters::Image(fCheckerboard), 77 canvas->drawRect(r, paint);
|
/third_party/skia/docs/examples/ |
H A D | Path_addRRect_2.cpp | 7 SkPaint paint; in REG_FIDDLE() local 8 paint.setAntiAlias(true); in REG_FIDDLE() 13 canvas->drawPath(path, paint); in REG_FIDDLE() 27 canvas->drawTextBlob(labels, 0, 0, paint); in REG_FIDDLE()
|
H A D | text_shadow.cpp | 14 SkPaint paint; in REG_FIDDLE() local 15 paint.setAntiAlias(true); in REG_FIDDLE() 16 SkPaint blur(paint); in REG_FIDDLE() 21 canvas->drawTextBlob(blob.get(), x, y, paint); in REG_FIDDLE()
|
H A D | Point_Distance.cpp | 8 SkPaint paint; in REG_FIDDLE() local 9 paint.setAntiAlias(true); in REG_FIDDLE() 15 canvas->drawLine(a, b, paint); in REG_FIDDLE() 21 canvas->drawString(distance, a.fX + 25, a.fY - 4, paint); in REG_FIDDLE()
|
H A D | Region_op_6.cpp | 8 SkPaint paint; in REG_FIDDLE() local 9 paint.setTextSize(128); in REG_FIDDLE() 11 paint.getTextPath("X", 1, 20, 110, &xPath); in REG_FIDDLE() 23 canvas->drawRegion(xRegion, paint); in REG_FIDDLE()
|
H A D | Path_conicTo_2.cpp | 7 SkPaint paint; in REG_FIDDLE() local 8 paint.setAntiAlias(true); in REG_FIDDLE() 9 paint.setStyle(SkPaint::kStroke_Style); in REG_FIDDLE() 27 canvas->drawPath(path, paint); in REG_FIDDLE()
|
H A D | skpaint_blur_mask_filter_2.cpp | 18 SkPaint paint; in REG_FIDDLE() local 19 paint.setAntiAlias(true); in REG_FIDDLE() 21 SkPaint blur(paint); in REG_FIDDLE() 32 canvas->drawString(text, x, y, font, paint); in REG_FIDDLE()
|
H A D | Image_isLazyGenerated_b.cpp | 16 SkPaint paint; in REG_FIDDLE() 17 paint.setAntiAlias(true); in REG_FIDDLE() 20 canvas->drawString(label, 30, image->height() / 4, font, paint); in REG_FIDDLE() 23 20, image->height() * 3 / 4, font, paint); in REG_FIDDLE()
|
H A D | Image_isTextureBacked.cpp | 16 SkPaint paint; in REG_FIDDLE() 17 paint.setAntiAlias(true); in REG_FIDDLE() 20 canvas->drawString(label, 30, image->height() / 4, font, paint); in REG_FIDDLE() 22 20, image->height() * 3 / 4, font, paint); in REG_FIDDLE()
|
/third_party/skia/modules/sksg/src/ |
H A D | SkSGImage.cpp | 23 SkPaint paint; in onRender() local 24 paint.setAntiAlias(fAntiAlias); in onRender() 33 local_ctx->modulatePaint(canvas->getTotalMatrix(), &paint); in onRender() 36 canvas->drawImage(fImage, 0, 0, fSamplingOptions, &paint); in onRender()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/recording/drawcmd_fuzzer/ |
H A D | drawcmd_fuzzer.cpp | 145 Paint paint = Paint(color); in DrawCmdFuzzTest003() local 146 DrawOpItem::GeneratePaintFromHandle(paintHandle, *drawCmdList, paint); in DrawCmdFuzzTest003() 185 Paint paint = Paint(color); in DrawCmdFuzzTest004() local 189 paint.SetWidth(width); in DrawCmdFuzzTest004() 190 paint.SetBlendMode(static_cast<BlendMode>(mode % BLENDMODE_SIZE)); in DrawCmdFuzzTest004() 191 paint.SetAntiAlias(isAntiAlias); in DrawCmdFuzzTest004() 192 DrawOpItem::GenerateHandleFromPaint(*drawCmdList, paint, paintHandle); in DrawCmdFuzzTest004() 226 Paint paint = Paint(color); in DrawCmdFuzzTest005() local 230 paint.SetWidth(width); in DrawCmdFuzzTest005() 231 paint in DrawCmdFuzzTest005() 339 Paint paint = Paint(color); DrawCmdFuzzTest008() local 384 Paint paint = Paint(color); DrawCmdFuzzTest009() local 440 Paint paint = Paint(color); DrawCmdFuzzTest010() local [all...] |