Home
last modified time | relevance | path

Searched refs:Blend (Results 1 – 25 of 172) sorted by relevance

1234567

/third_party/mesa3d/src/mesa/main/
Dblend.c176 (blend_factor_is_dual_src(ctx->Color.Blend[buf].SrcRGB) || in update_uses_dual_src()
177 blend_factor_is_dual_src(ctx->Color.Blend[buf].DstRGB) || in update_uses_dual_src()
178 blend_factor_is_dual_src(ctx->Color.Blend[buf].SrcA) || in update_uses_dual_src()
179 blend_factor_is_dual_src(ctx->Color.Blend[buf].DstA)); in update_uses_dual_src()
216 if (ctx->Color.Blend[buf].SrcRGB != sfactorRGB || in skip_blend_state_update()
217 ctx->Color.Blend[buf].DstRGB != dfactorRGB || in skip_blend_state_update()
218 ctx->Color.Blend[buf].SrcA != sfactorA || in skip_blend_state_update()
219 ctx->Color.Blend[buf].DstA != dfactorA) { in skip_blend_state_update()
226 if (ctx->Color.Blend[0].SrcRGB != sfactorRGB || in skip_blend_state_update()
227 ctx->Color.Blend[0].DstRGB != dfactorRGB || in skip_blend_state_update()
[all …]
Dattrib.c140 attr->Blend = ctx->Color.BlendEnabled; in _mesa_PushAttrib()
340 if (ctx->Color.BlendEnabled != enable->Blend) { in pop_enable_group()
343 TEST_AND_UPDATE_INDEX(ctx->Color.BlendEnabled, enable->Blend, in pop_enable_group()
347 _mesa_set_enable(ctx, GL_BLEND, (enable->Blend & 1)); in pop_enable_group()
780 _mesa_BlendFuncSeparateiARB(buf, attr->Color.Blend[buf].SrcRGB, in _mesa_PopAttrib()
781 attr->Color.Blend[buf].DstRGB, in _mesa_PopAttrib()
782 attr->Color.Blend[buf].SrcA, in _mesa_PopAttrib()
783 attr->Color.Blend[buf].DstA); in _mesa_PopAttrib()
785 attr->Color.Blend[buf].EquationRGB, in _mesa_PopAttrib()
786 attr->Color.Blend[buf].EquationA); in _mesa_PopAttrib()
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_blend.c238 translate_blend(ctx->Color.Blend[j].EquationRGB); in st_update_blend()
240 if (ctx->Color.Blend[i].EquationRGB == GL_MIN || in st_update_blend()
241 ctx->Color.Blend[i].EquationRGB == GL_MAX) { in st_update_blend()
248 translate_blend(ctx->Color.Blend[j].SrcRGB); in st_update_blend()
250 translate_blend(ctx->Color.Blend[j].DstRGB); in st_update_blend()
254 translate_blend(ctx->Color.Blend[j].EquationA); in st_update_blend()
256 if (ctx->Color.Blend[i].EquationA == GL_MIN || in st_update_blend()
257 ctx->Color.Blend[i].EquationA == GL_MAX) { in st_update_blend()
264 translate_blend(ctx->Color.Blend[j].SrcA); in st_update_blend()
266 translate_blend(ctx->Color.Blend[j].DstA); in st_update_blend()
/third_party/skia/gm/
Dxfermodeimagefilter.cpp94 paint.setImageFilter(SkImageFilters::Blend(gModes[i], background)); in onDraw()
111 paint.setImageFilter(SkImageFilters::Blend(SkBlendMode::kSrcOver, background)); in onDraw()
125 paint.setImageFilter(SkImageFilters::Blend( in onDraw()
134 paint.setImageFilter(SkImageFilters::Blend( in onDraw()
155 paint.setImageFilter(SkImageFilters::Blend(sampledModes[i], offsetBackground, in onDraw()
167 paint.setImageFilter(SkImageFilters::Blend(SkBlendMode::kScreen, cropped, background)); in onDraw()
175 paint.setImageFilter(SkImageFilters::Blend(SkBlendMode::kScreen, background, cropped)); in onDraw()
186 paint.setImageFilter(SkImageFilters::Blend(SkBlendMode::kSrcIn, background, cropped, in onDraw()
Dimagefiltersgraph.cpp48 sk_sp<SkColorFilter> cf(SkColorFilters::Blend(SK_ColorRED, in onDraw()
73 paint.setImageFilter(SkImageFilters::Blend(SkBlendMode::kSrcOver, in onDraw()
102 SkImageFilters::Blend(SkBlendMode::kSrcIn, std::move(blur), nullptr, &cropRect)); in onDraw()
131 sk_sp<SkColorFilter> cf1(SkColorFilters::Blend(SK_ColorBLUE, SkBlendMode::kSrcIn)); in onDraw()
132 sk_sp<SkColorFilter> cf2(SkColorFilters::Blend(SK_ColorGREEN, SkBlendMode::kSrcIn)); in onDraw()
Dcomposeshader.cpp49 return SkShaders::Blend(mode, std::move(shaderA), std::move(shaderB)); in make_shader()
199 SkShaders::Blend(mode, fLinearGradientShader, fColorBitmapShader), in onDraw()
201 SkShaders::Blend(mode, fLinearGradientShader, fAlpha8BitmapShader), in onDraw()
278 SkShaders::Blend(SkBlendMode::kSrcIn,
323 p.setShader(SkShaders::Blend(mode, dst, src)); in draw_composed()
Dcrbug_899512.cpp26 paint.setColorFilter(SkColorFilters::Blend(SK_ColorBLACK, SkBlendMode::kSrcIn));
/third_party/skia/bench/
DColorFilterBench.cpp167 []() { return SkColorFilters::Blend(0x80808080, SkBlendMode::kSrc); }); ) in __anona578fd9f0302()
169 []() { return SkColorFilters::Blend(0x80808080, SkBlendMode::kSrcOver); }); ) in __anona578fd9f0402()
179 []() { return SkColorFilters::Compose(SkColorFilters::Blend(0x80808080, SkBlendMode::kSrc), in __anona578fd9f0902()
180 SkColorFilters::Blend(0x80808080, SkBlendMode::kSrc)); in __anona578fd9f0902()
184 SkColorFilters::Blend(0x80808080, SkBlendMode::kSrc), in __anona578fd9f0a02()
185 SkColorFilters::Blend(0x80808080, SkBlendMode::kSrc)); in __anona578fd9f0a02()
/third_party/skia/src/codec/
DSkFrameHolder.h32 , fBlend(SkCodecAnimation::Blend::kSrcOver) in SkFrame()
137 void setBlend(SkCodecAnimation::Blend blend) { in setBlend()
141 SkCodecAnimation::Blend getBlend() const { in getBlend()
162 SkCodecAnimation::Blend fBlend;
/third_party/skia/src/shaders/
DSkComposeShader.cpp45 sk_sp<SkShader> SkShaders::Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src) { in Blend() function in SkShaders
58 sk_sp<SkShader> SkShaders::Blend(sk_sp<SkBlender> blender, sk_sp<SkShader> dst, sk_sp<SkShader> src… in Blend() function in SkShaders
63 return SkShaders::Blend(SkBlendMode::kSrcOver, std::move(dst), std::move(src)); in Blend()
66 return SkShaders::Blend(bm.value(), std::move(dst), std::move(src)); in Blend()
86 return SkShaders::Blend(std::move(blender), std::move(dst), std::move(src)); in CreateProc()
90 return SkShaders::Blend(static_cast<SkBlendMode>(mode), std::move(dst), std::move(src)); in CreateProc()
/third_party/skia/third_party/externals/opengl-registry/extensions/OES/
DOES_blend_func_separate.txt70 Replace the "Blend Equation" discussion in section 4.1.7 (Blending) with
74 blend functions. Blend functions are specified with the commands
88 Function RGB Blend Factors Alpha Blend Factor
DOES_blend_subtract.txt75 Replace the 1st paragraph of the "Blend Equation" discussion in section
85 Replace the last paragraph of the "Blend Equation" discussion in section
98 factors determined by the destination blend function. Blend functions are
119 Table 4.blendeq: Blend equations."
DOES_blend_equation_separate.txt66 Replace the first paragraph of the "Blend Equation" discussion in section
80 Replace the last paragraph of the "Blend Equation" discussion in section
96 weighting factors determined by the destination blend function. Blend
/third_party/skia/include/core/
DSkShader.h141 static sk_sp<SkShader> Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src);
142 static sk_sp<SkShader> Blend(sk_sp<SkBlender>, sk_sp<SkShader> dst, sk_sp<SkShader> src);
/third_party/vk-gl-cts/external/vulkan-docs/src/chapters/VK_EXT_blend_operation_advanced/
Dadvanced_blend.txt6 === Advanced Blend Operations
9 <<framebuffer-blend-advanced-fxyz-modes,f/X/Y/Z Advanced Blend Operations>>,
11 Blend Operations>>, and
12 <<framebuffer-blend-advanced-additional-rgb,Additional RGB Blend
62 <<framebuffer-blend-advanced-fxyz-modes,f/X/Y/Z Advanced Blend Operations>>
64 Blend Operations>>, blending is performed according to the following
161 in table <<framebuffer-blend-advanced-overlap-modes,Advanced Blend Overlap
186 .Advanced Blend Overlap Modes
222 .f/X/Y/Z Advanced Blend Operations
225 | Mode | Blend Coefficients
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcBlendEquationAdvancedTests.cpp166 static tcu::Vec4 Blend(const tcu::Vec4& rgb, const tcu::Vec4& src, const tcu::Vec4& dst) in Blend() function
178 return Blend(rgb, src, dst); in BlendMultiply()
185 return Blend(rgb, src, dst); in BlendScreen()
200 return Blend(rgb, src, dst); in BlendOverlay()
207 return Blend(rgb, src, dst); in BlendDarken()
214 return Blend(rgb, src, dst); in BlendLighten()
231 return Blend(rgb, src, dst); in BlendColorDodge()
251 return Blend(rgb, src, dst); in BlendColorBurn()
266 return Blend(rgb, src, dst); in BlendHardLight()
289 return Blend(rgb, src, dst); in BlendSoftLight()
[all …]
/third_party/openGLES/extensions/OES/
DOES_blend_func_separate.txt80 Replace the "Blend Equation" discussion in section 4.1.7 (Blending) with
84 blend functions. Blend functions are specified with the commands
98 Function RGB Blend Factors Alpha Blend Factor
DOES_blend_subtract.txt85 Replace the 1st paragraph of the "Blend Equation" discussion in section
95 Replace the last paragraph of the "Blend Equation" discussion in section
108 factors determined by the destination blend function. Blend functions are
129 Table 4.blendeq: Blend equations."
/third_party/skia/tests/
DCodecAnimTest.cpp72 SkString to_string(SkCodecAnimation::Blend blend) { in to_string()
74 case SkCodecAnimation::Blend::kSrcOver: in to_string()
76 case SkCodecAnimation::Blend::kSrc: in to_string()
105 constexpr auto kSrcOver = SkCodecAnimation::Blend::kSrcOver; in DEF_TEST()
106 constexpr auto kSrc = SkCodecAnimation::Blend::kSrc; in DEF_TEST()
122 std::vector<SkCodecAnimation::Blend> fBlends; in DEF_TEST()
/third_party/skia/src/core/
DSkModeColorFilter.cpp60 return SkColorFilters::Blend(color, mode); in CreateProc()
126 sk_sp<SkColorFilter> SkColorFilters::Blend(SkColor color, SkBlendMode mode) { in Blend() function in SkColorFilters
/third_party/skia/include/codec/
DSkCodecAnimation.h46 enum class Blend { enum
/third_party/skia/docs/examples/
DPaint_getColorFilter.cpp9 paint.setColorFilter(SkColorFilters::Blend(SK_ColorLTGRAY, SkBlendMode::kSrcIn)); in draw()
DPaint_refColorFilter.cpp8 paint1.setColorFilter(SkColorFilters::Blend(0xFFFF0000, SkBlendMode::kSrcATop)); in draw()
DPaint_setColorFilter.cpp8 paint.setColorFilter(SkColorFilters::Blend(SK_ColorLTGRAY, SkBlendMode::kSrcIn)); in draw()
Dskpaint_compose_shader.cpp9 paint.setShader(SkShaders::Blend( in draw()

1234567