/external/skia/src/core/ |
D | SkRecordOpts.cpp | 90 static bool fold_opacity_layer_color_to_paint(const SkPaint* layerPaint, in fold_opacity_layer_color_to_paint() argument 124 if (layerPaint) { in fold_opacity_layer_color_to_paint() 125 const uint32_t layerColor = layerPaint->getColor(); in fold_opacity_layer_color_to_paint() 132 if (layerPaint->getPathEffect() || in fold_opacity_layer_color_to_paint() 133 layerPaint->getShader() || in fold_opacity_layer_color_to_paint() 134 !layerPaint->isSrcOver() || in fold_opacity_layer_color_to_paint() 135 layerPaint->getMaskFilter() || in fold_opacity_layer_color_to_paint() 136 layerPaint->getColorFilter() || in fold_opacity_layer_color_to_paint() 137 layerPaint->getLooper() || in fold_opacity_layer_color_to_paint() 138 layerPaint->getImageFilter()) { in fold_opacity_layer_color_to_paint() [all …]
|
/external/skqp/src/core/ |
D | SkRecordOpts.cpp | 90 static bool fold_opacity_layer_color_to_paint(const SkPaint* layerPaint, in fold_opacity_layer_color_to_paint() argument 124 if (layerPaint) { in fold_opacity_layer_color_to_paint() 125 const uint32_t layerColor = layerPaint->getColor(); in fold_opacity_layer_color_to_paint() 132 if (layerPaint->getPathEffect() || in fold_opacity_layer_color_to_paint() 133 layerPaint->getShader() || in fold_opacity_layer_color_to_paint() 134 !layerPaint->isSrcOver() || in fold_opacity_layer_color_to_paint() 135 layerPaint->getMaskFilter() || in fold_opacity_layer_color_to_paint() 136 layerPaint->getColorFilter() || in fold_opacity_layer_color_to_paint() 137 layerPaint->getLooper() || in fold_opacity_layer_color_to_paint() 138 layerPaint->getImageFilter()) { in fold_opacity_layer_color_to_paint() [all …]
|
/external/skqp/gm/ |
D | recordopts.cpp | 58 SkPaint layerPaint; in draw_save_layer_draw_rect_restore_sequence() local 59 layerPaint.setColor(SkColorSetARGB(128, 0, 0, 0)); in draw_save_layer_draw_rect_restore_sequence() 60 canvas->saveLayer(&targetRect, &layerPaint); in draw_save_layer_draw_rect_restore_sequence() 86 SkPaint layerPaint; in draw_save_layer_draw_bitmap_restore_sequence() local 87 layerPaint.setColor(SkColorSetARGB(129, 0, 0, 0)); in draw_save_layer_draw_bitmap_restore_sequence() 88 canvas->saveLayer(&targetRect, &layerPaint); in draw_save_layer_draw_bitmap_restore_sequence() 112 SkPaint layerPaint; in draw_svg_opacity_and_filter_layer_sequence() local 113 layerPaint.setColor(SkColorSetARGB(130, 0, 0, 0)); in draw_svg_opacity_and_filter_layer_sequence() 114 canvas->saveLayer(&targetRect, &layerPaint); in draw_svg_opacity_and_filter_layer_sequence()
|
D | fadefilter.cpp | 19 SkPaint layerPaint; variable 20 layerPaint.setImageFilter(SkColorFilterImageFilter::Make(std::move(colorFilter), nullptr)); 21 canvas->drawRect(SkRect::MakeLTRB(64, 64, 192, 192), layerPaint);
|
D | savelayer.cpp | 210 auto layerPaint = paintMaker(); variable 211 rec.fPaint = &layerPaint; 246 SkPaint layerPaint; variable 247 layerPaint.setBlendMode(SkBlendMode::kModulate); 251 auto proc = [layerPaint](SkCanvas* canvas, SkCanvas::SaveLayerRec& rec) { in __anondd111c7f0802() 269 SkCanvas::SaveLayerRec rec(&r, &layerPaint, yflags[y] | xflags[x]);
|
D | animatedimageblurs.cpp | 45 SkPaint layerPaint; in onDraw() local 46 layerPaint.setImageFilter(SkBlurImageFilter::Make(fNodes[i].sigma(), in onDraw() 50 canvas->saveLayer(nullptr, &layerPaint); in onDraw()
|
D | shadermaskfilter.cpp | 207 SkPaint layerPaint; variable 208 layerPaint.setMaskFilter(mf); 211 layerPaint.setImageFilter(imf); 213 canvas->saveLayer(&r, &layerPaint);
|
/external/skia/gm/ |
D | recordopts.cpp | 59 SkPaint layerPaint; in draw_save_layer_draw_rect_restore_sequence() local 60 layerPaint.setColor(SkColorSetARGB(128, 0, 0, 0)); in draw_save_layer_draw_rect_restore_sequence() 61 canvas->saveLayer(&targetRect, &layerPaint); in draw_save_layer_draw_rect_restore_sequence() 86 SkPaint layerPaint; in draw_save_layer_draw_bitmap_restore_sequence() local 87 layerPaint.setColor(SkColorSetARGB(129, 0, 0, 0)); in draw_save_layer_draw_bitmap_restore_sequence() 88 canvas->saveLayer(&targetRect, &layerPaint); in draw_save_layer_draw_bitmap_restore_sequence() 112 SkPaint layerPaint; in draw_svg_opacity_and_filter_layer_sequence() local 113 layerPaint.setColor(SkColorSetARGB(130, 0, 0, 0)); in draw_svg_opacity_and_filter_layer_sequence() 114 canvas->saveLayer(&targetRect, &layerPaint); in draw_svg_opacity_and_filter_layer_sequence()
|
D | fadefilter.cpp | 19 SkPaint layerPaint; variable 20 layerPaint.setImageFilter(SkColorFilterImageFilter::Make(std::move(colorFilter), nullptr)); 21 canvas->drawRect(SkRect::MakeLTRB(64, 64, 192, 192), layerPaint);
|
D | savelayer.cpp | 210 auto layerPaint = paintMaker(); variable 211 rec.fPaint = &layerPaint; 246 SkPaint layerPaint; variable 247 layerPaint.setBlendMode(SkBlendMode::kModulate); 251 auto proc = [layerPaint](SkCanvas* canvas, SkCanvas::SaveLayerRec& rec) { in __anon62f1ea880802() 269 SkCanvas::SaveLayerRec rec(&r, &layerPaint, yflags[y] | xflags[x]);
|
D | animatedimageblurs.cpp | 45 SkPaint layerPaint; in onDraw() local 46 layerPaint.setImageFilter(SkBlurImageFilter::Make(fNodes[i].sigma(), in onDraw() 50 canvas->saveLayer(nullptr, &layerPaint); in onDraw()
|
D | shadermaskfilter.cpp | 212 SkPaint layerPaint; variable 213 layerPaint.setMaskFilter(mf); 216 layerPaint.setImageFilter(imf); 218 canvas->saveLayer(&r, &layerPaint);
|
/external/skia/tests/ |
D | LayerDrawLooperTest.cpp | 55 SkPaint* layerPaint = looperBuilder.addLayer(layerInfo); in test_frontToBack() local 56 layerPaint->setBlendMode(SkBlendMode::kSrc); in test_frontToBack() 94 SkPaint* layerPaint = looperBuilder.addLayerOnTop(layerInfo); in test_backToFront() local 95 layerPaint->setBlendMode(SkBlendMode::kSrc); in test_backToFront() 133 SkPaint* layerPaint = looperBuilder.addLayerOnTop(layerInfo); in test_mixed() local 134 layerPaint->setBlendMode(SkBlendMode::kSrc); in test_mixed()
|
D | RecordingXfermodeTest.cpp | 47 SkPaint layerPaint; in draw() local 48 layerPaint.setColor(0xff000000); in draw() 49 layerPaint.setBlendMode(mode); in draw() 58 canvas->saveLayer(nullptr, &layerPaint); in draw()
|
/external/skqp/tests/ |
D | LayerDrawLooperTest.cpp | 55 SkPaint* layerPaint = looperBuilder.addLayer(layerInfo); in test_frontToBack() local 56 layerPaint->setBlendMode(SkBlendMode::kSrc); in test_frontToBack() 94 SkPaint* layerPaint = looperBuilder.addLayerOnTop(layerInfo); in test_backToFront() local 95 layerPaint->setBlendMode(SkBlendMode::kSrc); in test_backToFront() 133 SkPaint* layerPaint = looperBuilder.addLayerOnTop(layerInfo); in test_mixed() local 134 layerPaint->setBlendMode(SkBlendMode::kSrc); in test_mixed()
|
D | RecordingXfermodeTest.cpp | 47 SkPaint layerPaint; in draw() local 48 layerPaint.setColor(0xff000000); in draw() 49 layerPaint.setBlendMode(mode); in draw() 58 canvas->saveLayer(nullptr, &layerPaint); in draw()
|
/external/skia/src/pdf/ |
D | SkPDFDevice.cpp | 378 SkBaseDevice* SkPDFDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint* layerPaint) { in onCreateDevice() argument 385 if (layerPaint && (layerPaint->getImageFilter() || layerPaint->getColorFilter())) { in onCreateDevice()
|
/external/skqp/src/pdf/ |
D | SkPDFDevice.cpp | 378 SkBaseDevice* SkPDFDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint* layerPaint) { in onCreateDevice() argument 385 if (layerPaint && (layerPaint->getImageFilter() || layerPaint->getColorFilter())) { in onCreateDevice()
|