Home
last modified time | relevance | path

Searched refs:layerPaint (Results 1 – 23 of 23) sorted by relevance

/third_party/skia/src/core/
DSkRecordOpts.cpp90 static bool fold_opacity_layer_color_to_paint(const SkPaint* layerPaint, in fold_opacity_layer_color_to_paint() argument
122 if (layerPaint) { in fold_opacity_layer_color_to_paint()
123 const uint32_t layerColor = layerPaint->getColor(); in fold_opacity_layer_color_to_paint()
130 if (layerPaint->getPathEffect() || in fold_opacity_layer_color_to_paint()
131 layerPaint->getShader() || in fold_opacity_layer_color_to_paint()
132 !layerPaint->isSrcOver() || in fold_opacity_layer_color_to_paint()
133 layerPaint->getMaskFilter() || in fold_opacity_layer_color_to_paint()
134 layerPaint->getColorFilter() || in fold_opacity_layer_color_to_paint()
135 layerPaint->getImageFilter()) { in fold_opacity_layer_color_to_paint()
194 SkPaint* layerPaint = match->first<SaveLayer>()->paint; in onMatch() local
[all …]
DSkBitmapDevice.cpp304 SkBaseDevice* SkBitmapDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint* layerPaint) { in onCreateDevice() argument
310 if (layerPaint && layerPaint->getImageFilter()) { in onCreateDevice()
/third_party/flutter/skia/src/core/
DSkRecordOpts.cpp90 static bool fold_opacity_layer_color_to_paint(const SkPaint* layerPaint, in fold_opacity_layer_color_to_paint() argument
122 if (layerPaint) { in fold_opacity_layer_color_to_paint()
123 const uint32_t layerColor = layerPaint->getColor(); in fold_opacity_layer_color_to_paint()
130 if (layerPaint->getPathEffect() || in fold_opacity_layer_color_to_paint()
131 layerPaint->getShader() || in fold_opacity_layer_color_to_paint()
132 !layerPaint->isSrcOver() || in fold_opacity_layer_color_to_paint()
133 layerPaint->getMaskFilter() || in fold_opacity_layer_color_to_paint()
134 layerPaint->getColorFilter() || in fold_opacity_layer_color_to_paint()
135 layerPaint->getImageFilter()) { in fold_opacity_layer_color_to_paint()
200 SkPaint* layerPaint = match->first<SaveLayer>()->paint; in onMatch() local
[all …]
/third_party/flutter/skia/gm/
Drecordopts.cpp67 SkPaint layerPaint; in draw_save_layer_draw_rect_restore_sequence() local
68 layerPaint.setColor(SkColorSetARGB(128, 0, 0, 0)); in draw_save_layer_draw_rect_restore_sequence()
69 canvas->saveLayer(&targetRect, &layerPaint); in draw_save_layer_draw_rect_restore_sequence()
94 SkPaint layerPaint; in draw_save_layer_draw_bitmap_restore_sequence() local
95 layerPaint.setColor(SkColorSetARGB(129, 0, 0, 0)); in draw_save_layer_draw_bitmap_restore_sequence()
96 canvas->saveLayer(&targetRect, &layerPaint); in draw_save_layer_draw_bitmap_restore_sequence()
120 SkPaint layerPaint; in draw_svg_opacity_and_filter_layer_sequence() local
121 layerPaint.setColor(SkColorSetARGB(130, 0, 0, 0)); in draw_svg_opacity_and_filter_layer_sequence()
122 canvas->saveLayer(&targetRect, &layerPaint); in draw_svg_opacity_and_filter_layer_sequence()
Dfadefilter.cpp26 SkPaint layerPaint; variable
27 layerPaint.setImageFilter(SkImageFilters::ColorFilter(std::move(colorFilter), nullptr));
28 canvas->drawRect(SkRect::MakeLTRB(64, 64, 192, 192), layerPaint);
Danimatedimageblurs.cpp54 SkPaint layerPaint; in onDraw() local
55 layerPaint.setImageFilter(SkImageFilters::Blur(fNodes[i].sigma(), fNodes[i].sigma(), in onDraw()
58 canvas->saveLayer(nullptr, &layerPaint); in onDraw()
Dsavelayer.cpp234 auto layerPaint = paintMaker(); variable
235 rec.fPaint = &layerPaint;
270 SkPaint layerPaint; variable
271 layerPaint.setBlendMode(SkBlendMode::kModulate);
275 auto proc = [layerPaint](SkCanvas* canvas, SkCanvas::SaveLayerRec& rec) { in __anonc8baa3500802()
293 SkCanvas::SaveLayerRec rec(&r, &layerPaint, yflags[y] | xflags[x]);
Dshadermaskfilter.cpp228 SkPaint layerPaint; variable
229 layerPaint.setMaskFilter(mf);
232 layerPaint.setImageFilter(imf);
234 canvas->saveLayer(&r, &layerPaint);
/third_party/skia/gm/
Drecordopts.cpp67 SkPaint layerPaint; in draw_save_layer_draw_rect_restore_sequence() local
68 layerPaint.setColor(SkColorSetARGB(128, 0, 0, 0)); in draw_save_layer_draw_rect_restore_sequence()
69 canvas->saveLayer(&targetRect, &layerPaint); in draw_save_layer_draw_rect_restore_sequence()
94 SkPaint layerPaint; in draw_save_layer_draw_bitmap_restore_sequence() local
95 layerPaint.setColor(SkColorSetARGB(129, 0, 0, 0)); in draw_save_layer_draw_bitmap_restore_sequence()
96 canvas->saveLayer(&targetRect, &layerPaint); in draw_save_layer_draw_bitmap_restore_sequence()
120 SkPaint layerPaint; in draw_svg_opacity_and_filter_layer_sequence() local
121 layerPaint.setColor(SkColorSetARGB(130, 0, 0, 0)); in draw_svg_opacity_and_filter_layer_sequence()
122 canvas->saveLayer(&targetRect, &layerPaint); in draw_svg_opacity_and_filter_layer_sequence()
Dfadefilter.cpp26 SkPaint layerPaint; variable
27 layerPaint.setImageFilter(SkImageFilters::ColorFilter(std::move(colorFilter), nullptr));
28 canvas->drawRect(SkRect::MakeLTRB(64, 64, 192, 192), layerPaint);
Dsavelayer.cpp67 SkPaint layerPaint; variable
68 layerPaint.setBlendMode(SkBlendMode::kModulate);
72 auto proc = [layerPaint](SkCanvas* canvas, SkCanvas::SaveLayerRec& rec) { in __anonf6b9189b0102()
90 SkCanvas::SaveLayerRec rec(&r, &layerPaint, yflags[y] | xflags[x]);
Danimatedimageblurs.cpp55 SkPaint layerPaint; in onDraw() local
56 layerPaint.setImageFilter(SkImageFilters::Blur(fNodes[i].sigma(), fNodes[i].sigma(), in onDraw()
59 canvas->saveLayer(nullptr, &layerPaint); in onDraw()
Dcrop_imagefilter.cpp200 SkPaint layerPaint; in draw_example() local
201 layerPaint.setImageFilter(std::move(filter)); in draw_example()
205 canvas->saveLayer(hintContent ? &contentBounds : nullptr, &layerPaint); in draw_example()
Druntimeshader.cpp104 SkPaint layerPaint; in make_threshold() local
106 layerPaint.setImageFilter(SkImageFilters::Blur(sigma, sigma, nullptr)); in make_threshold()
107 canvas->saveLayer(nullptr, &layerPaint); in make_threshold()
Dblurs.cpp135 SkPaint layerPaint, p; variable
/third_party/flutter/skia/tests/
DLayerDrawLooperTest.cpp55 SkPaint* layerPaint = looperBuilder.addLayer(layerInfo); in test_frontToBack() local
56 layerPaint->setBlendMode(SkBlendMode::kSrc); in test_frontToBack()
91 SkPaint* layerPaint = looperBuilder.addLayerOnTop(layerInfo); in test_backToFront() local
92 layerPaint->setBlendMode(SkBlendMode::kSrc); in test_backToFront()
127 SkPaint* layerPaint = looperBuilder.addLayerOnTop(layerInfo); in test_mixed() local
128 layerPaint->setBlendMode(SkBlendMode::kSrc); in test_mixed()
DRecordingXfermodeTest.cpp47 SkPaint layerPaint; in draw() local
48 layerPaint.setColor(0xff000000); in draw()
49 layerPaint.setBlendMode(mode); in draw()
58 canvas->saveLayer(nullptr, &layerPaint); in draw()
DPDFPrimitivesTest.cpp448 SkPaint layerPaint({0, 0, 0, 0}); in DEF_TEST() local
449 layerPaint.setImageFilter(SkDilateImageFilter::Make(536870912, 0, nullptr, nullptr)); in DEF_TEST()
450 layerPaint.setBlendMode(SkBlendMode::kClear); in DEF_TEST()
452 canvas->saveLayer(nullptr, &layerPaint); in DEF_TEST()
/third_party/skia/tests/
DRecordingXfermodeTest.cpp48 SkPaint layerPaint; in draw() local
49 layerPaint.setColor(0xff000000); in draw()
50 layerPaint.setBlendMode(mode); in draw()
59 canvas->saveLayer(nullptr, &layerPaint); in draw()
DPDFPrimitivesTest.cpp454 SkPaint layerPaint({0, 0, 0, 0}); in DEF_TEST() local
455 layerPaint.setImageFilter(SkImageFilters::Dilate(536870912, 0, nullptr, nullptr)); in DEF_TEST()
456 layerPaint.setBlendMode(SkBlendMode::kClear); in DEF_TEST()
458 canvas->saveLayer(nullptr, &layerPaint); in DEF_TEST()
/third_party/skia/docs/examples/
DBlendModes.cpp49 SkPaint layerPaint; in draw() local
50 layerPaint.setBlendMode(mode); in draw()
57 canvas->saveLayer(nullptr, &layerPaint); in draw()
/third_party/skia/src/pdf/
DSkPDFDevice.cpp212 SkBaseDevice* SkPDFDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint* layerPaint) { in onCreateDevice() argument
219 if (layerPaint && (layerPaint->getImageFilter() || layerPaint->getColorFilter())) { in onCreateDevice()
/third_party/flutter/skia/src/pdf/
DSkPDFDevice.cpp189 SkBaseDevice* SkPDFDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint* layerPaint) { in onCreateDevice() argument
196 if (layerPaint && (layerPaint->getImageFilter() || layerPaint->getColorFilter())) { in onCreateDevice()