/third_party/skia/tests/ |
H A D | SkColorSpaceXformStepsTest.cpp | 21 unpremul = kUnpremul_SkAlphaType; in DEF_TEST() local 27 bool unpremul; in DEF_TEST() member 38 true, // src is encoded as f(s)*a,a, so we unpremul to f(s),a before linearizing. in DEF_TEST() 47 // If the src alpha type is unpremul, we'll not need that initial unpremul step. in DEF_TEST() 48 { adobe, srgb, unpremul, premul, false,true,true,true,true }, in DEF_TEST() 49 { srgb, adobe, unpremul, premul, false,true,true,true,true }, in DEF_TEST() 51 // If opaque, we need neither the initial unpremul, nor the premul later. in DEF_TEST() 58 true, // we need to linearize, so we need to unpremul in DEF_TEST() 67 // As in the general case, when we change the alpha type unpremul an in DEF_TEST() [all...] |
H A D | ColorFilterTest.cpp | 107 SkAlphaType unpremul = kUnpremul_SkAlphaType; in DEF_TEST() local 111 &unpremul); in DEF_TEST() 123 SkAlphaType unpremul = kUnpremul_SkAlphaType; in DEF_TEST() local 127 &unpremul); in DEF_TEST()
|
H A D | NonlinearBlendingTest.cpp | 31 auto unpremul = skcms_AlphaFormat_Unpremul, in DEF_TEST() local 35 skcms_Transform(&color, bgra, unpremul, &srgb_profile, in DEF_TEST()
|
H A D | ImageTest.cpp | 526 ERRORF(reporter, "Failed to make unpremul texture image."); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 529 SkBitmap unpremul; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 530 unpremul.allocPixels(SkImageInfo::Make(256, 256, kRGBA_8888_SkColorType, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 532 if (!texImage->readPixels(dContext, unpremul.info(), unpremul.getPixels(), unpremul.rowBytes(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 539 if (*bmp.getAddr32(x, y) != *unpremul.getAddr32(x, y)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 540 ERRORF(reporter, "unpremul(0x%08x)->unpremul(0x%08x) at %d, %d.", in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 541 *bmp.getAddr32(x, y), *unpremul in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all...] |
/third_party/skia/src/core/ |
H A D | SkColorSpaceXformSteps.cpp | 34 this->flags.unpremul = srcAT == kPremul_SkAlphaType; in SkColorSpaceXformSteps() 85 // Skip unpremul...premul if there are no non-linear operations between. in SkColorSpaceXformSteps() 86 if ( this->flags.unpremul && in SkColorSpaceXformSteps() 91 this->flags.unpremul = false; in SkColorSpaceXformSteps() 97 if (flags.unpremul) { in apply() 133 if (flags.unpremul) { p->append(SkRasterPipeline::unpremul); } in apply() 201 if (flags.unpremul) { in program() 202 c = unpremul(c); in program()
|
H A D | SkColorSpaceXformSteps.h | 21 bool unpremul = false; member 28 return (unpremul ? 1 : 0) in mask()
|
H A D | SkColorFilter_Matrix.cpp | 90 if (!shaderIsOpaque) { p->append(SkRasterPipeline::unpremul); } in onAppendStages() 135 c = unpremul(c); in onProgram() 155 // Convert RGBA -> HSLA (including unpremul). 167 // An additional trick we employ is deferring premul->unpremul conversion until the very end: the 168 // alpha factor gets naturally simplified for H and S, and only L requires a dedicated unpremul
|
H A D | SkColorFilter.cpp | 100 return as_CFB(this)->onFilterColor4f(color, dstCS).unpremul(); in filterColor4f() 238 // We handle premul/unpremul separately, so here just always upm->upm. in SkSRGBGammaColorFilter() 272 rec.fPipeline->append(SkRasterPipeline::unpremul); 285 return premul(fSteps.program(p, uniforms, unpremul(c)));
|
H A D | SkConvertPixels.cpp | 44 steps.flags.unpremul || in swizzle_or_premul()
|
H A D | SkRasterPipeline.h | 43 M(unpremul) M(premul) M(premul_dst) \
|
H A D | SkVM.h | 935 void unpremul(F32* r, F32* g, F32* b, F32 a); in abs() 938 Color unpremul(Color c) { this->unpremul(&c.r, &c.g, &c.b, c.a); return c; } in abs() function in skvm::Builder 1319 SI void unpremul(F32* r, F32* g, F32* b, F32 a) { a->unpremul(r,g,b,a); } in unpremul() function 1322 SI Color unpremul(Color c) { return c->unpremul(c); } in unpremul() function
|
/third_party/skia/src/effects/ |
H A D | SkHighContrastFilter.cpp | 30 half4 c = inColor; // linear unpremul RGBA in dst gamut. in Make() 63 SkAlphaType unpremul = kUnpremul_SkAlphaType; in Make() local 66 &linear, nullptr/*use dst gamut*/, &unpremul); in Make()
|
H A D | SkTableColorFilter.cpp | 47 p->append(SkRasterPipeline::unpremul); 75 c = unpremul(c); 171 "half4 coord = 255 * unpremul(%s) + 0.5;\n" in onMakeProgramImpl()
|
H A D | SkLayerDrawLooper.cpp | 61 return SkBlendMode_Apply(mode, pmS, pmD).unpremul(); in xferColor()
|
/third_party/skia/tools/gdb/ |
H A D | bitmap.py | 41 unpremul = 3 variable in AlphaType 71 if alpha_type == AlphaType.unpremul.value:
|
/third_party/skia/gm/ |
H A D | lumafilter.cpp | 196 SkAlphaType unpremul = kUnpremul_SkAlphaType; in DEF_SIMPLE_GM() local 200 &unpremul)); in DEF_SIMPLE_GM() local
|
H A D | unpremul.cpp | 20 DEF_SIMPLE_GM(unpremul, canvas, 200, 200) { in DEF_SIMPLE_GM()
|
/third_party/skia/src/gpu/glsl/ |
H A D | GrGLSLColorSpaceXformHelper.h | 61 bool applyUnpremul() const { return fFlags.unpremul; } in applyUnpremul()
|
/third_party/skia/src/sksl/ |
H A D | SkSLIntrinsicList.h | 106 SKSL_INTRINSIC(unpremul)
|
/third_party/skia/src/gpu/ |
H A D | SurfaceContext.cpp | 108 bool unpremul = flags.unpremul, in readPixels() local 117 // unpremul step to writeSurfacePixels's premul step (which is determined empirically in in readPixels() 122 bool canvas2DFastPath = unpremul && !needColorConversion && in readPixels() 223 bool convert = unpremul || premul || needColorConversion || flip || makeTight || in readPixels() 367 bool unpremul = flags.unpremul, in internalWritePixels() local 377 // For canvas2D putImageData performance we have a special code path for unpremul RGBA_8888 srcs in internalWritePixels() 486 unpremul || in internalWritePixels()
|
H A D | SurfaceFillContext.h | 134 return color.unpremul().array(); in ConvertColor()
|
H A D | GrColorSpaceXform.cpp | 138 return this->fColorXform->apply(c0.unpremul()).premul(); in constantOutputForConstantInput()
|
H A D | GrDataUtils.cpp | 629 bool unpremul = src.alphaType() == kPremul_SkAlphaType && in GrConvertPixels() local 632 premul || unpremul || !SkColorSpace::Equals(src.colorSpace(), dst.colorSpace()); in GrConvertPixels()
|
/third_party/skia/include/core/ |
H A D | SkColor.h | 393 SkRGBA4f<kUnpremul_SkAlphaType> unpremul() const { in unpremul() function
|
/third_party/skia/src/codec/ |
H A D | SkWebpCodec.cpp | 339 p.append(SkRasterPipeline::unpremul); in blend_line() 452 // the colorXform and blend_line expect unpremul. in onGetPixels()
|