/external/skia/src/shaders/gradients/ |
Sk4fLinearGradient.h | 27 template <ApplyPremul premul> 30 template <ApplyPremul premul, SkShader::TileMode tileMode>
|
Sk4fLinearGradient.cpp | 15 template<ApplyPremul premul> 28 DstTraits<premul>::store4x(c0, c1, c2, c3, dst); 38 DstTraits<premul>::store(c0, dst++); 39 DstTraits<premul>::store(c1, dst++); 43 DstTraits<premul>::store(c0, dst); 154 template<ApplyPremul premul> 161 this->shadeSpanInternal<premul, kClamp_TileMode>(x, y, dst, count); 164 this->shadeSpanInternal<premul, kRepeat_TileMode>(x, y, dst, count); 167 this->shadeSpanInternal<premul, kMirror_TileMode>(x, y, dst, count); 172 template<ApplyPremul premul, SkShader::TileMode tileMode [all...] |
Sk4fGradientPriv.h | 47 // - store() Store one Sk4f to dest. Optionally handles premul, color space 54 template <ApplyPremul premul> 56 using PM = PremulTraits<premul>;
|
Sk4fGradientBase.cpp | 14 Sk4f pack_color(const SkColor4f& c4f, bool premul, const Sk4f& component_scale) { 15 const Sk4f pm4f = premul 16 ? c4f.premul().to4f()
|
/external/skia/tests/ |
SkColor4fTest.cpp | 49 // First just test opaque colors, so that the premul should be exact 53 SkPM4f pm4 = c4.premul(); 59 // We compare with a tolerance, in case our premul multiply is implemented at slightly 62 pm4 = c4.premul();
|
Float16Test.cpp | 51 SkPM4f origpm4 = c4.premul();
|
WritePixelsTest.cpp | 135 static uint32_t premul(uint32_t color) { function 149 color = premul(color); 229 "Write performed premul: %d", cx, cy, bmpPMColor, canvasPixel, mul);
|
/external/skia/src/shaders/ |
SkColorShader.cpp | 59 fPM4f = c4.premul(); 178 fPM4f = c4.premul(); 224 return GrConstColorProcessor::Make(color.premul(), GrConstColorProcessor::kModulateA_InputMode); 270 p->append_uniform_color(scratch, to_colorspace(fColor4, fColorSpace.get(), dst).premul());
|
/external/skia/src/core/ |
SkColorFilter.cpp | 67 SkPM4f dst, src = c.premul(); 249 p->append(SkRasterPipeline::premul);
|
SkConvertPixels.cpp | 320 pipeline.append(SkRasterPipeline::premul); 339 pipeline.append(SkRasterPipeline::premul); 343 // The final premul state must equal the dst alpha type. Note that if we are "converting"
|
SkBlitter_Sprite.cpp | 131 p.append(SkRasterPipeline::premul);
|
SkColor.cpp | 179 SkPM4f SkColor4f::premul() const { function in class:SkColor4f
|
SkPM4fPriv.h | 179 return SkColor4f_from_SkColor(color, dst).premul();
|
SkRasterPipeline.h | 44 M(unpremul) M(premul) M(premul_dst) \
|
SkColorMatrixFilterRowMajor255.cpp | 161 if (!willStayOpaque) { p->append(SkRasterPipeline::premul); }
|
SkColorSpaceXform_A2B.cpp | 45 pipeline.append(SkRasterPipeline::premul);
|
/external/skia/include/core/ |
SkColor.h | 206 SkPM4f premul() const;
|
/external/skia/src/gpu/ |
SkGr.cpp | 269 return SkColorToUnpremulGrColor4f(c, dstColorSpace).premul(); 285 return SkColorToUnpremulGrColor4f(c, dstColorSpace, gamutXform).premul(); 493 grPaint->setColor4f(origColor.premul()); 505 colorFilter->filterColor4f(origColor.toSkColor4f())).premul());
|
GrContext.cpp | 305 // We only allow premul <-> unpremul conversions for some formats 337 // The src is unpremul but the dst is premul -> premul the src before or as part of the write 338 const bool premul = SkToBool(kUnpremul_PixelOpsFlag & pixelOpsFlags); local 339 if (!valid_pixel_conversion(srcConfig, dstSurface->config(), premul)) { 344 // without any color spaces attached, and the caller wants us to premul. 346 premul && 350 // Are we going to try to premul as part of a draw? For the non-legacy case, we always allow 352 bool premulOnGpu = premul && 386 // temp buffer for doing sw premul conversion, if needed [all...] |
/external/skia/src/gpu/effects/ |
GrSRGBEffect.cpp | 112 return color.premul();
|
/external/skia/src/images/ |
SkImageEncoderFns.h | 188 p.append(SkRasterPipeline::premul); 313 p.append(SkRasterPipeline::premul);
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
BitmapTest.java | 174 int premul = Math.round(alpha * comp / 255.f); local 175 int unpre = Math.round(255.0f * premul / alpha);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapFactoryTest.java | 547 Bitmap premul = BitmapFactory.decodeResource(mRes, R.drawable.premul_data, options); local 550 assertEquals(premul.getConfig(), Bitmap.Config.ARGB_8888); 552 assertTrue(premul.getHeight() == 1 && unpremul.getHeight() == 1); 553 assertTrue(premul.getWidth() == unpremul.getWidth() && 555 premul.getWidth() == DEPREMUL_COLORS.length); 557 // verify pixel data - unpremul should have raw values, premul will have rounding errors 558 for (int i = 0; i < premul.getWidth(); i++) { 559 assertEquals(premul.getPixel(i, 0), DEPREMUL_COLORS[i]); [all...] |
/external/skia/src/utils/ |
SkPatchUtils.cpp | 240 SkRGBAf premul() const { function in struct:SkRGBAf 266 dst[i] = dst[i].premul(); 342 * 2. Since drawing the vertices wants premul, shoudl we extend SkVertices to store 343 * premul colors (as floats, w/ a colorspace)?
|
/external/skia/include/gpu/ |
GrColor.h | 258 GrColor4f premul() const { function in struct:GrColor4f
|