Home
last modified time | relevance | path

Searched refs:newPaint (Results 1 – 15 of 15) sorted by relevance

/third_party/skia/gm/
Dtestgradient.cpp52 SkPaint newPaint(paint); in onDraw() local
53 newPaint.setShader(SkGradientShader::MakeLinear( in onDraw()
55 canvas->drawRect(rect, newPaint); in onDraw()
/third_party/flutter/skia/gm/
Dtestgradient.cpp52 SkPaint newPaint(paint); in onDraw() local
53 newPaint.setShader(SkGradientShader::MakeLinear( in onDraw()
55 canvas->drawRect(rect, newPaint); in onDraw()
/third_party/skia/src/utils/
DSkPaintFilterCanvas.cpp166 const SkPaint* newPaint = &apf.paint(); in onDrawPicture() local
172 if ( newPaint->getAlphaf() == 1.0f in onDrawPicture()
173 && newPaint->getColorFilter() == nullptr in onDrawPicture()
174 && newPaint->getImageFilter() == nullptr in onDrawPicture()
175 && newPaint->asBlendMode() == SkBlendMode::kSrcOver) { in onDrawPicture()
177 newPaint = nullptr; in onDrawPicture()
180 this->SkNWayCanvas::onDrawPicture(picture, m, newPaint); in onDrawPicture()
/third_party/flutter/skia/resources/lua/
Dtest.lua5 local paint = Sk.newPaint();
25 path_paint = Sk.newPaint();
47 local paint = Sk.newPaint();
Dslides.lua22 local paint = Sk.newPaint();
43 local paint = Sk.newPaint()
133 gRedPaint = Sk.newPaint()
299 bgPaint = Sk.newPaint()
Dslides_transitions.lua50 paint = Sk.newPaint(),
96 paint = Sk.newPaint(),
/third_party/skia/src/core/
DSkOverdrawCanvas.cpp248 SkPaint newPaint = fPaint; in overdrawPaint() local
249 newPaint.setStyle(paint.getStyle()); in overdrawPaint()
250 newPaint.setStrokeWidth(paint.getStrokeWidth()); in overdrawPaint()
251 return newPaint; in overdrawPaint()
DSkDraw.cpp393 SkPaint newPaint(paint); in drawPoints() local
394 newPaint.setStyle(SkPaint::kFill_Style); in drawPoints()
396 SkScalar width = newPaint.getStrokeWidth(); in drawPoints()
399 if (newPaint.getStrokeCap() == SkPaint::kRound_Cap) { in drawPoints()
404 device->drawOval(r, newPaint); in drawPoints()
416 this->drawPath(path, newPaint, &preMatrix, (count-1) == i); in drawPoints()
428 device->drawRect(r, newPaint); in drawPoints()
430 this->drawRect(r, newPaint); in drawPoints()
/third_party/flutter/skia/src/core/
DSkOverdrawCanvas.cpp268 SkPaint newPaint = fPaint; in overdrawPaint() local
269 newPaint.setStyle(paint.getStyle()); in overdrawPaint()
270 newPaint.setStrokeWidth(paint.getStrokeWidth()); in overdrawPaint()
271 return newPaint; in overdrawPaint()
DSkDraw.cpp389 SkPaint newPaint(paint); in drawPoints() local
390 newPaint.setStyle(SkPaint::kFill_Style); in drawPoints()
392 SkScalar width = newPaint.getStrokeWidth(); in drawPoints()
395 if (newPaint.getStrokeCap() == SkPaint::kRound_Cap) { in drawPoints()
400 device->drawOval(r, newPaint); in drawPoints()
412 this->drawPath(path, newPaint, &preMatrix, (count-1) == i); in drawPoints()
424 device->drawRect(r, newPaint); in drawPoints()
426 this->drawRect(r, newPaint); in drawPoints()
/third_party/flutter/skia/site/user/special/
Dlua.md37 > paint = Sk.newPaint()
/third_party/skia/src/pdf/
DSkPDFDevice.cpp389 SkPaint newPaint = srcPaint; in drawPaint() local
390 newPaint.setStyle(SkPaint::kFill_Style); in drawPaint()
391 this->drawRect(bbox, newPaint); in drawPaint()
1209 SkPaint newPaint = paint; in populate_graphic_state_entry_from_paint() local
1210 newPaint.setColor4f(color, nullptr); in populate_graphic_state_entry_from_paint()
1211 newGraphicState = SkPDFGraphicState::GetGraphicStateForPaint(doc, newPaint); in populate_graphic_state_entry_from_paint()
/third_party/flutter/skia/src/pdf/
DSkPDFDevice.cpp360 SkPaint newPaint = srcPaint; in drawPaint() local
361 newPaint.setStyle(SkPaint::kFill_Style); in drawPaint()
362 this->drawRect(bbox, newPaint); in drawPaint()
1226 SkPaint newPaint = paint; in populate_graphic_state_entry_from_paint() local
1227 newPaint.setColor4f(color, nullptr); in populate_graphic_state_entry_from_paint()
1228 newGraphicState = SkPDFGraphicState::GetGraphicStateForPaint(doc, newPaint); in populate_graphic_state_entry_from_paint()
/third_party/flutter/skia/src/gpu/
DSkGpuDevice.cpp581 SkPaint newPaint(origPaint); in drawStrokedLine() local
582 newPaint.setStyle(SkPaint::kFill_Style); in drawStrokedLine()
602 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext->colorSpaceInfo(), newPaint, m, in drawStrokedLine()
608 this->clip(), std::move(grPaint), GrAA(newPaint.isAntiAlias()), m, rect, local); in drawStrokedLine()
/third_party/skia/modules/canvaskit/npm_build/types/
Dcanvaskit-wasm-tests.ts391 const newPaint = paint.copy(); // $ExpectType Paint constant