Home
last modified time | relevance | path

Searched refs:blendMode (Results 1 – 25 of 38) sorted by relevance

12

/third_party/skia/src/pdf/
DSkPDFDevice.cpp1135 static bool treat_as_regular_pdf_blend_mode(SkBlendMode blendMode) { in treat_as_regular_pdf_blend_mode() argument
1136 return nullptr != SkPDFUtils::BlendModeName(blendMode); in treat_as_regular_pdf_blend_mode()
1223 SkBlendMode blendMode = paint.getBlendMode_or(SkBlendMode::kSrcOver); in setUpContentEntry() local
1226 if (blendMode == SkBlendMode::kDst) { in setUpContentEntry()
1232 if (!treat_as_regular_pdf_blend_mode(blendMode) && blendMode != SkBlendMode::kDstOver) { in setUpContentEntry()
1236 } else if (blendMode != SkBlendMode::kSrc && in setUpContentEntry()
1237 blendMode != SkBlendMode::kSrcOut) { in setUpContentEntry()
1246 if (treat_as_regular_pdf_blend_mode(blendMode)) { in setUpContentEntry()
1281 SkBlendMode blendMode, in finishContentEntry() argument
1284 SkASSERT(blendMode != SkBlendMode::kDst); in finishContentEntry()
[all …]
/third_party/skia/tests/
DBulkRectTest.cpp51 SkBlendMode blendMode, bool addOneByOne, in fillrectop_creation_test() argument
71 paint.setXPFactory(SkBlendMode_AsXPFactory(blendMode)); in fillrectop_creation_test()
99 SkBlendMode blendMode, bool addOneByOne, in textureop_creation_test() argument
158 blendMode, in textureop_creation_test()
174 blendMode, in textureop_creation_test()
186 if (blendMode != SkBlendMode::kSrcOver || in textureop_creation_test()
193 uint32_t expectedOpID = blendMode == SkBlendMode::kSrcOver ? skgpu::v1::TextureOp::ClassID() in textureop_creation_test()
DAdvancedBlendTest.cpp32 const SkBlendMode blendMode = (SkBlendMode)mode; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
35 const GrXPFactory* xpf = GrCustomXfermode::Get(blendMode); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DDMSAATest.cpp29 SkBlendMode blendMode) { in draw_paint_with_aa() argument
32 paint.setXPFactory(SkBlendMode_AsXPFactory(blendMode)); in draw_paint_with_aa()
39 SkBlendMode blendMode) { in draw_paint_with_dmsaa() argument
49 paint.setXPFactory(SkBlendMode_AsXPFactory(blendMode)); in draw_paint_with_dmsaa()
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/
DImageFilter.java78 public static ImageFilter blend(BlendMode blendMode, @Nullable ImageFilter background, in blend() argument
88 return new ImageFilter(nBlend(blendMode.nativeInt, nativeBackground, nativeForeground)); in blend()
118 … private static native long nBlend(int blendMode, long native_background, long native_foreground); in nBlend() argument
/third_party/skia/modules/svg/src/
DSkSVGFeBlend.cpp41 const SkBlendMode blendMode = GetBlendMode(this->getMode()); in onMakeImageFilter() local
45 return SkImageFilters::Blend(blendMode, background, foreground, cropRect); in onMakeImageFilter()
/third_party/skia/src/core/
DSkOverdrawCanvas.cpp95 const SkPoint texCoords[4], SkBlendMode blendMode, in onDrawPatch() argument
97 fList[0]->onDrawPatch(cubics, colors, texCoords, blendMode, fPaint); in onDrawPatch()
144 SkBlendMode blendMode, const SkPaint& paint) { in onDrawVerticesObject() argument
145 fList[0]->onDrawVerticesObject(vertices, blendMode, this->overdrawPaint(paint)); in onDrawVerticesObject()
DSkDraw_vertices.cpp308 void SkDraw::drawFixedVertices(const SkVertices* vertices, SkBlendMode blendMode, in drawFixedVertices() argument
334 switch (blendMode) { in drawFixedVertices()
366 blendMode, sk_ref_sp(triShader), sk_ref_sp(shader)); in drawFixedVertices()
485 blendMode, sk_ref_sp(colorShader), sk_ref_sp(shader)); in drawFixedVertices()
DSkDraw.h128 SkBlendMode blendMode,
/third_party/skia/tools/gpu/
DProxyUtils.cpp102 SkBlendMode blendMode, in CreateProgramInfo() argument
109 GrProcessorSet processors = GrProcessorSet(blendMode); in CreateProgramInfo()
/third_party/skia/experimental/graphite/src/
DDrawList.cpp17 SkBlendMode blendMode, in PaintParams() argument
20 , fBlendMode(blendMode) in PaintParams()
DDevice.cpp281 auto blendMode = paint.asBlendMode(); in drawShape() local
283 blendMode.has_value() ? *blendMode : SkBlendMode::kSrcOver, in drawShape()
DDrawList.h47 SkBlendMode blendMode() const { return fBlendMode; } in blendMode() function
/third_party/skia/fuzz/
DFuzzCanvas.cpp180 SkBlendMode blendMode; in make_fuzz_shader() local
214 fuzz->nextEnum(&blendMode, SkBlendMode::kLastMode); in make_fuzz_shader()
215 return SkShaders::Blend(blendMode, std::move(shader1), std::move(shader2)); in make_fuzz_shader()
780 SkBlendMode blendMode; in make_fuzz_imageFilter() local
783 fuzz->nextEnum(&blendMode, SkBlendMode::kLastMode); in make_fuzz_imageFilter()
790 return SkImageFilters::Blend(blendMode, std::move(bg), std::move(fg), in make_fuzz_imageFilter()
1384 SkBlendMode blendMode; in fuzz_canvas() local
1386 fuzz->nextRange(&blendMode, 0, SkBlendMode::kLastMode); in fuzz_canvas()
1414 blendMode, paint); in fuzz_canvas()
1419 SkBlendMode blendMode; in fuzz_canvas() local
[all …]
/third_party/vk-gl-cts/framework/referencerenderer/
DrrRenderState.hpp255 BlendMode blendMode; member
293 , blendMode (BLENDMODE_NONE) in FragmentOperationState()
/third_party/skia/include/core/
DSkBlendMode.h108 SK_API const char* SkBlendMode_Name(SkBlendMode blendMode);
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fDrawBuffersIndexedTests.cpp600 fragOps.blendMode = rr::BLENDMODE_ADVANCED; in setBlendState()
607 fragOps.blendMode = rr::BLENDMODE_STANDARD; in setBlendState()
616 fragOps.blendMode = rr::BLENDMODE_STANDARD; in setBlendState()
656 state.fragOps.blendMode = rr::BLENDMODE_STANDARD; in createRenderState()
663 …state.fragOps.blendMode = (*(postCommonBlendState.enableBlend) ? state.fragOps.blendMode : rr::BLE… in createRenderState()
665 …state.fragOps.blendMode = (*(info.getBlendState().enableBlend) ? state.fragOps.blendMode : rr::BLE… in createRenderState()
667 …state.fragOps.blendMode = (*(preCommonBlendState.enableBlend) ? state.fragOps.blendMode : rr::BLEN… in createRenderState()
669 state.fragOps.blendMode = rr::BLENDMODE_NONE; in createRenderState()
674 state.fragOps.blendMode = rr::BLENDMODE_NONE; in createRenderState()
/third_party/skia/src/gpu/effects/
DGrPorterDuffXferProcessor.h27 static const GrXPFactory* Get(SkBlendMode blendMode);
DGrPorterDuffXferProcessor.cpp635 const GrXPFactory* GrPorterDuffXPFactory::Get(SkBlendMode blendMode) { in Get() argument
636 SkASSERT((unsigned)blendMode <= (unsigned)SkBlendMode::kLastCoeffMode); in Get()
654 switch (blendMode) { in Get()
/third_party/skia/modules/canvaskit/
Dinterface.js488 /* optional */ blendMode, /* optional */ colors, argument
504 if (!blendMode) {
505 blendMode = CanvasKit.BlendMode.SrcOver;
523 this._drawAtlasCubic(atlas, dstXformPtr, srcRectPtr, colorPtr, count, blendMode,
534 this._drawAtlasOptions(atlas, dstXformPtr, srcRectPtr, colorPtr, count, blendMode,
/third_party/skia/modules/canvaskit/tests/
Dcanvas.spec.js311 const blendMode = CanvasKit.BlendMode[blendModeName]; constant
313 drawRectangle(x + 30, y + 30, x + 70, y + 70, PASTEL_SKY_BLUE, blendMode);
351 function drawRectangle(x1, y1, x2, y2, color, blendMode=CanvasKit.BlendMode.srcOver) { argument
354 canvas.drawColor(color, blendMode);
/third_party/skia/src/gpu/ops/
DTextureOp.cpp1137 SkBlendMode blendMode, in Make() argument
1157 if (blendMode == SkBlendMode::kSrcOver) { in Make()
1165 paint.setXPFactory(SkBlendMode_AsXPFactory(blendMode)); in Make()
1264 SkBlendMode blendMode, in AddTextureSetOps() argument
1275 if (blendMode != SkBlendMode::kSrcOver || in AddTextureSetOps()
1304 filter, mm, set[i].fColor, saturate, blendMode, aaType, &quad, subset); in AddTextureSetOps()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fBlendTests.cpp258 referenceState.blendMode = rr::BLENDMODE_NONE; in iterate()
260 referenceState.blendMode = rr::BLENDMODE_STANDARD; in iterate()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fBlendTests.cpp306 referenceState.blendMode = rr::BLENDMODE_NONE; in iterate()
308 referenceState.blendMode = rr::BLENDMODE_STANDARD; in iterate()
/third_party/skia/src/gpu/v1/
DSurfaceDrawContext.cpp647 SkBlendMode blendMode, in drawTexture() argument
673 if (blendMode != SkBlendMode::kSrcOver) { in drawTexture()
674 paint.setXPFactory(SkBlendMode_AsXPFactory(blendMode)); in drawTexture()
685 mm, color, blendMode, aa, &quad, subset); in drawTexture()
695 SkBlendMode blendMode, in drawTexturedQuad() argument
725 blendMode, aaType, quad, subset)); in drawTexturedQuad()

12