Home
last modified time | relevance | path

Searched refs:SkColorGetA (Results 1 – 25 of 40) sorted by relevance

12

/external/skia/src/animator/
DSkDrawColor.cpp88 return SkColorSetARGB(SkColorGetA(color), SkScalarRoundToInt(red), in HSV_to_RGB()
154 SkColorGetA(color)/255, SkColorGetR(color), in dump()
181 result = SkIntToScalar(SkColorGetA(color)) / 255; in getProperty()
235 color = SkColorSetARGB(SkColorGetA(color), SkColorGetR(color), in setProperty()
240 color = SkColorSetARGB(SkColorGetA(color), SkColorGetR(color), in setProperty()
249 color = SkColorSetARGB(SkColorGetA(color), SkToU8((U8CPU) scalar), in setProperty()
DSkDrawBitmap.cpp71 SkDebugf("erase=\"argb(%d,%d,%d,%d)\" ", SkColorGetA(fColor)/255, SkColorGetR(fColor), in dump()
/external/skia/experimental/PdfViewer/
Dchop_transparency_main.cpp50 if (SkColorGetA(color) != 0) { in opaqueSize()
73 if (SkColorGetA(color) != 0xff) { in write_bitmap()
74 int a = SkColorGetA(color); in write_bitmap()
/external/skia/src/effects/
DSkAlphaThresholdFilter.cpp353 if (SkColorGetA(source) < innerThreshold) { in onFilterImage()
354 U8CPU alpha = SkColorGetA(source); in onFilterImage()
364 if (SkColorGetA(source) > outerThreshold) { in onFilterImage()
365 float scale = (float)outerThreshold / SkColorGetA(source); in onFilterImage()
DSkBlurDrawLooper.cpp125 if (SkColorGetA(blurColor) == 255) { in next()
DSkColorCubeFilter.cpp138 uint8_t a = SkColorGetA(inputColor); in filterSpan()
/external/skia/src/utils/
DSkPatchUtils.cpp281 SkScalar(SkColorGetA(colorsPM[kTopLeft_Corner])), in getVertexData()
282 SkScalar(SkColorGetA(colorsPM[kTopRight_Corner])), in getVertexData()
283 SkScalar(SkColorGetA(colorsPM[kBottomLeft_Corner])), in getVertexData()
284 SkScalar(SkColorGetA(colorsPM[kBottomRight_Corner])))); in getVertexData()
DSkTextureCompressor_ASTC.cpp1017 interpolate_channel(SkColorGetA(endpoints[0]), SkColorGetA(endpoints[1]), weight), in interpolate_endpoints()
1033 int a = interpolate_channel(SkColorGetA(endpoints[0]), SkColorGetA(endpoints[1]), weight0); in interpolate_dual_endpoints()
1057 SkColorGetA(endpoints[0]), SkColorGetA(endpoints[1]), weight1); in interpolate_dual_endpoints()
1617 SkColorGetA(result), SkColorGetB(result), SkColorGetG(result), SkColorGetR(result)); in getTexel()
DSkParseColor.cpp457 unsigned int oldAlpha = SkColorGetA(*colorPtr); in FindColor()
/external/skia/tests/
DPremulAlphaRoundTripTest.cpp25 byte[3] = SkColorGetA(c); in pack_unpremul_rgba()
35 byte[3] = SkColorGetA(c); in pack_unpremul_bgra()
/external/skia/src/core/
DSkShader.cpp262 return SkColorGetA(fColor) == 255; in isOpaque()
290 unsigned a = SkAlphaMul(SkColorGetA(color), SkAlpha255To256(rec.fPaint->getAlpha())); in ColorShaderContext()
353 U8CPU newA = SkMulDiv255Round(SkColorGetA(fColor), paint.getAlpha()); in asFragmentProcessor()
DSkColor.cpp18 return SkPremultiplyARGBInline(SkColorGetA(c), SkColorGetR(c), in SkPreMultiplyColor()
DSkBlitMask_D32.cpp96 bool isOpaque = (0xFF == SkColorGetA(color)); in D32_LCD16_Proc()
118 } else if (0xFF == SkColorGetA(color)) { in D32_A8_Factory()
DSkRecordOpts.cpp113 paint->setAlpha(SkMulDiv255Round(paint->getAlpha(), SkColorGetA(layerColor))); in fold_opacity_layer_color_to_paint()
DSkBlitter_RGB16.cpp532 fScale = SkAlpha255To256(SkColorGetA(color)); in SkRGB16_Blitter()
1049 if (0 == SkColorGetA(color)) { in SkBlitter_ChooseD565()
1055 } else if (0xFF == SkColorGetA(color)) { in SkBlitter_ChooseD565()
/external/skia/src/effects/gradients/
DSkGradientShader.cpp212 colorAlpha &= SkColorGetA(fOrigColors[i]); in initCommon()
347 SkASSERT(SkColorGetA(c0) == 0xFF); in Build16bitCache()
348 SkASSERT(SkColorGetA(c1) == 0xFF); in Build16bitCache()
399 uint32_t a0 = SkMulDiv255Round(SkColorGetA(c0), paintAlpha); in Build32bitCache()
400 uint32_t a1 = SkMulDiv255Round(SkColorGetA(c1), paintAlpha); in Build32bitCache()
928 SkColorGetA(*color) / 255.f); in set_color_uni()
934 float a = SkColorGetA(*color) / 255.f; in set_mul_color_uni()
/external/skia/tools/
Dfiltermain.cpp98 int a0 = SkColorGetA(color); in apply_0()
101 int a1 = SkColorGetA(color); in apply_0()
174 SkColorGetA(saveLayerPaint->getColor())); in apply_1()
445 a0 = SkColorGetA(color); in apply_7()
453 a1 = SkColorGetA(color); in apply_7()
/external/skia/include/gpu/
DSkGr.h65 U8CPU a = SkColorGetA(c); in SkColor2GrColorJustAlpha()
DGrColor.h130 a = SkColorGetA(colorUPM); in GrUnPreMulColor()
/external/skia/include/core/
DSkColor.h62 #define SkColorGetA(color) (((color) >> 24) & 0xFF) macro
DSkBitmap.h471 this->eraseARGB(SkColorGetA(c), SkColorGetR(c), SkColorGetG(c), in eraseColor()
/external/skia/src/opts/
DSkBlitMask_opts_arm_neon.cpp119 } else if (0xFF == SkColorGetA(color)) { in D32_A8_Factory_neon()
199 int colA = SkColorGetA(color); in SkBlitLCD16Row_neon()
/external/skia/src/svg/
DSkSVGDevice.cpp35 return SkIntToScalar(SkColorGetA(color)) / SK_AlphaOPAQUE; in svg_opacity()
352 if (SK_AlphaOPAQUE != SkColorGetA(paint.getColor())) { in addPaint()
383 if (SK_AlphaOPAQUE != SkColorGetA(paint.getColor())) { in addPaint()
498 if (SK_AlphaOPAQUE != SkColorGetA(color)) { in addLinearGradientDef()
/external/skia/samplecode/
DSampleHT.cpp20 f[0] = SkIntToScalar(SkColorGetA(c)); in color_to_floats()
/external/skia/gm/
Dall_bitmap_configs.cpp100 return SkPremultiplyARGBInline(SkColorGetA(c), SkColorGetR(c), in premultiply_color()

12