Home
last modified time | relevance | path

Searched refs:paint (Results 1026 - 1050 of 1341) sorted by relevance

1...<<41424344454647484950>>...54

/third_party/skia/gm/
H A Dconvexpolyeffect.cpp132 SkPaint paint; variable
133 canvas->drawPath(path, paint);
135 paint.setAntiAlias(true);
136 canvas->drawPath(path, paint);
H A Demptypath.cpp38 SkPaint paint; in drawEmpty() local
39 paint.setColor(color); in drawEmpty()
40 paint.setStyle(style); in drawEmpty()
43 canvas->drawPath(path, paint); in drawEmpty()
H A Dasyncrescaleandread.cpp210 SkPaint paint; in do_rescale_image_grid() local
211 paint.setBlendMode(SkBlendMode::kSrc); in do_rescale_image_grid()
212 surface->getCanvas()->drawImage(image, 0, 0, SkSamplingOptions(), &paint); in do_rescale_image_grid()
297 SkPaint paint; in DEF_SIMPLE_GM_CAN_FAIL() local
393 SkPaint paint; in DEF_SIMPLE_GM_CAN_FAIL() local
394 paint.setShader(std::move(shader)); in DEF_SIMPLE_GM_CAN_FAIL()
396 upmSurf->getCanvas()->drawPaint(paint); in DEF_SIMPLE_GM_CAN_FAIL()
397 pmSurf ->getCanvas()->drawPaint(paint); in DEF_SIMPLE_GM_CAN_FAIL()
/third_party/skia/src/core/
H A DSkScalerContext.h61 // This will be set if to the paint's foreground color if
102 * Causes the luminance color to be ignored, and the paint and device
113 * paint and device gamma to be effectively 1.0.
142 msg.appendf(" lum bits %x, device gamma %d, paint gamma %d contrast %d\n", fLumBits, in dump()
211 // will apply the alpha from the paint. Don't apply the alpha twice.
225 explicit SkScalerContextEffects(const SkPaint& paint) in SkScalerContextEffects()
226 : fPathEffect(paint.getPathEffect()) in SkScalerContextEffects()
227 , fMaskFilter(paint.getMaskFilter()) {} in SkScalerContextEffects()
313 static void MakeRecAndEffects(const SkFont& font, const SkPaint& paint,
324 SkPaint paint; in MakeRecAndEffectsFromFont() local
[all...]
H A DSkPaintPriv.h25 * Returns true if drawing with this paint (or nullptr) will ovewrite all affected pixels.
27 * Note: returns conservative true, meaning it may return false even though the paint might
30 static bool Overwrites(const SkPaint* paint, ShaderOverrideOpacity);
42 can reconstitute the paint at a later time.
46 static void Flatten(const SkPaint& paint, SkWriteBuffer& buffer);
53 // If this paint has any color filter, fold it into the shader and/or paint color
H A DSkFont.cpp119 SkScalar SkFont::setupForAsPaths(SkPaint* paint) { in setupForAsPaths() argument
130 if (paint) { in setupForAsPaths()
131 paint->setStyle(SkPaint::kFill_Style); in setupForAsPaths()
132 paint->setPathEffect(nullptr); in setupForAsPaths()
160 SkRect* bounds, const SkPaint* paint) const { in measureText()
172 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(*this, paint); in measureText()
209 const SkPaint* paint) const { in getWidthsBounds()
210 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(*this, paint); in getWidthsBounds()
/third_party/skia/tests/
H A DCanvasStateTest.cpp154 SkTLazy<SkPaint> paint; in DEF_TEST() local
156 paint.init()->setAlpha(layerAlpha[k]); in DEF_TEST()
160 canvas->saveLayer(SkCanvas::SaveLayerRec(&rect, paint.getMaybeNull())); in DEF_TEST()
247 SkPaint paint; in DEF_TEST() local
248 paint.setAlpha(128); in DEF_TEST()
251 canvas->saveLayer(SkCanvas::SaveLayerRec(&layerBounds, &paint)); in DEF_TEST()
H A DClipCubicTest.cpp32 SkPaint paint; in test_giantClip() local
33 paint.setAntiAlias(true); in test_giantClip()
34 canvas.drawPath(SkPath::Polygon({{0,0}, {1,0}, {33,1}}, false), paint); in test_giantClip()
175 SkPaint paint; in DEF_TEST() local
176 paint.setAntiAlias(true); in DEF_TEST()
207 canvas->drawPath(path, paint); in DEF_TEST()
H A DRecordDrawTest.cpp182 // (We were applying the saveLayer paint to the bounds after restore, which makes no sense.)
189 SkPaint paint; in DEF_TEST() local
190 paint.setImageFilter(SkImageFilters::DropShadow(20, 0, 0, 0, SK_ColorBLACK, nullptr)); in DEF_TEST()
192 recorder.saveLayer(nullptr, &paint); in DEF_TEST()
221 SkPaint paint; in DEF_TEST() local
222 paint.setImageFilter(SkImageFilters::DropShadow(20, 0, 0, 0, SK_ColorBLACK, nullptr)); in DEF_TEST()
224 recorder.saveLayer(nullptr, &paint); in DEF_TEST()
247 // When a saveLayer provides an explicit bound and has a complex paint (e.g., one that
H A DPDFPrimitivesTest.cpp299 SkPaint paint; in DEF_TEST() local
300 paint.setImageFilter(filter); in DEF_TEST()
301 canvas->drawRect(SkRect::MakeWH(100, 100), paint); in DEF_TEST()
461 SkPaint paint; in DEF_TEST() local
462 paint.setBlendMode(SkBlendMode::kDarken); in DEF_TEST()
463 paint.setShader(SkPerlinNoiseShader::MakeFractalNoise(0, 0, 2, 0, nullptr)); in DEF_TEST()
464 paint.setColor4f(SkColor4f{0, 0, 0 ,0}); in DEF_TEST()
466 canvas->drawPath(SkPath(), paint); in DEF_TEST() local
/third_party/skia/docs/examples/
H A DPaint_countText.cpp8 SkPaint paint; in REG_FIDDLE() local
10 SkDebugf("count = %d\n", paint.countText(utf8, sizeof(utf8))); in REG_FIDDLE()
H A DCanvas_clipRect_2.cpp7 SkPaint paint; in REG_FIDDLE() local
11 canvas->drawCircle(100, 100, 60, paint); in REG_FIDDLE()
H A DImageInfo_MakeN32.cpp12 SkPaint paint; in REG_FIDDLE() local
13 offscreen.drawString("g", 0, 10, paint); in REG_FIDDLE()
H A Dpersp_text_2.cpp6 SkPaint paint; in REG_FIDDLE() local
14 canvas->drawString(text, 0, 0, SkFont(nullptr, 0.1f), paint); in REG_FIDDLE()
H A DPath_addArc.cpp7 SkPaint paint; in REG_FIDDLE() local
12 canvas->drawPath(path, paint); in REG_FIDDLE()
H A DPath_rArcTo.cpp7 SkPaint paint; in REG_FIDDLE() local
14 canvas->drawPath(path, paint); in REG_FIDDLE()
H A DBitmap_allocPixelsFlags.cpp11 SkPaint paint; in REG_FIDDLE() local
13 offscreen.drawString("!@#$%", 0, 12, font, paint); in REG_FIDDLE()
H A DBitmap_setInfo.cpp12 SkPaint paint; in REG_FIDDLE() local
14 offscreen.drawString("!@#$%", 0, 12, font, paint); in REG_FIDDLE()
H A DCanvas_drawVertices.cpp7 SkPaint paint; in REG_FIDDLE() local
12 canvas->drawVertices(vertices.get(), SkBlendMode::kSrc, paint); in REG_FIDDLE()
H A DImageInfo_empty_constructor.cpp15 SkPaint paint; in REG_FIDDLE() local
16 canvas->drawString(string, 20, 20, paint); in REG_FIDDLE()
H A DSurface_MakeRaster.cpp16 SkPaint paint; in REG_FIDDLE() local
17 canvas->drawPoint(1, 1, paint); in REG_FIDDLE()
H A DSurface_MakeRasterDirect.cpp15 SkPaint paint; in REG_FIDDLE() local
16 canvas->drawPoint(1, 1, paint); in REG_FIDDLE()
/third_party/skia/samplecode/
H A DSampleSimpleStroker.cpp90 SkPath getFillPath(const SkPath& path, const SkPaint& paint);
104 void initForPath(const SkPath& path, const SkPaint& paint);
126 void SkPathStroker2::initForPath(const SkPath& path, const SkPaint& paint) { in initForPath() argument
127 fRadius = paint.getStrokeWidth() / 2; in initForPath()
128 fCap = paint.getStrokeCap(); in initForPath()
129 fJoin = paint.getStrokeJoin(); in initForPath()
134 SkPath SkPathStroker2::getFillPath(const SkPath& path, const SkPaint& paint) { in getFillPath() argument
135 initForPath(path, paint); in getFillPath()
/third_party/skia/src/effects/imagefilters/
H A DSkBlendImageFilter.cpp181 SkPaint paint; in onFilterImage() local
182 paint.setBlendMode(SkBlendMode::kSrc); in onFilterImage()
185 SkSamplingOptions(), &paint); in onFilterImage()
240 SkPaint paint; in drawForeground() local
241 paint.setBlender(fBlender); in drawForeground()
244 SkSamplingOptions(), &paint); in drawForeground()
249 paint.setColor(0); in drawForeground()
250 canvas->drawPaint(paint); in drawForeground()
/third_party/skia/experimental/skrive/src/
H A DRectangle.cpp36 void Rectangle::onDraw(SkCanvas* canvas, const SkPaint& paint, SkPathFillType) const { in onDraw() argument
41 canvas->drawRect(rect, paint); in onDraw()

Completed in 10 milliseconds

1...<<41424344454647484950>>...54