Home
last modified time | relevance | path

Searched refs:SkColorGetA (Results 1 – 25 of 48) 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/include/gpu/
DSkGr.h39 unsigned a = SkColorGetA(c); in SkColorToUnpremulGrColor()
52 U8CPU a = SkColorGetA(c); in SkColorAlphaToGrColor()
DGrColor.h167 a = SkColorGetA(colorUPM); in GrUnpremulColor()
/external/skia/tests/
DColorMatrixTest.cpp20 REPORTER_ASSERT(reporter, abs((int)(SkColorGetA(expected) - SkColorGetA(actual))) <= tolerance); in assert_color()
DPremulAlphaRoundTripTest.cpp25 byte[3] = SkColorGetA(c); in pack_unpremul_rgba()
35 byte[3] = SkColorGetA(c); in pack_unpremul_bgra()
/external/skia/src/utils/
DSkPatchUtils.cpp261 SkScalar(SkColorGetA(colorsPM[kTopLeft_Corner])), in getVertexData()
262 SkScalar(SkColorGetA(colorsPM[kTopRight_Corner])), in getVertexData()
263 SkScalar(SkColorGetA(colorsPM[kBottomLeft_Corner])), in getVertexData()
264 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/src/effects/
DSkAlphaThresholdFilter.cpp380 if (SkColorGetA(source) < innerThreshold) { in onFilterImageDeprecated()
381 U8CPU alpha = SkColorGetA(source); in onFilterImageDeprecated()
391 if (SkColorGetA(source) > outerThreshold) { in onFilterImageDeprecated()
392 float scale = (float)outerThreshold / SkColorGetA(source); in onFilterImageDeprecated()
DSkBlurDrawLooper.cpp125 if (SkColorGetA(blurColor) == 255) { in next()
/external/skia/tools/skiaserve/urlhandlers/
DBreakHandler.cpp68 startColor.append(Json::Value(SkColorGetA(target))); in handle()
87 endColor.append(Json::Value(SkColorGetA(current))); in handle()
/external/skia/src/effects/gradients/
DSkGradientShader.cpp213 colorAlpha &= SkColorGetA(fOrigColors[i]); in initCommon()
349 SkASSERT(SkColorGetA(c0) == 0xFF); in Build16bitCache()
350 SkASSERT(SkColorGetA(c1) == 0xFF); in Build16bitCache()
415 uint32_t a0 = SkMulDiv255Round(SkColorGetA(c0), paintAlpha); in Build32bitCache()
416 uint32_t a1 = SkMulDiv255Round(SkColorGetA(c1), paintAlpha); in Build32bitCache()
953 SkColorGetA(*color) / 255.f); in set_color_uni()
959 float a = SkColorGetA(*color) / 255.f; in set_mul_color_uni()
/external/skia/src/opts/
DSkBlitMask_opts.h156 SkASSERT(SkColorGetA(color) == 0xFF);
197 } else if (SkColorGetA(color) == 0xFF) { in blit_mask_d32_a8()
DSkOpts_sse41.cpp186 if (SkColorGetA(color) == 0xFF) { in blit_mask_d32_a8()
/external/skia/gm/
Daaxfermodes.cpp206 int maxSum = SkTMax(SkTMax(SkColorGetA(kBGColor) + SkColorGetA(color), in setupShapePaint()
DSkLinearBitmapPipelineGM.cpp29 w = SkPackARGB32NoCheck(SkColorGetA(c), SkColorGetR(c), SkColorGetG(c), SkColorGetB(c)); in fill_in_bits()
/external/skia/src/core/
DSkShader.cpp260 return SkColorGetA(fColor) == 255; in isOpaque()
284 unsigned a = SkAlphaMul(SkColorGetA(color), SkAlpha255To256(rec.fPaint->getAlpha())); in ColorShaderContext()
DSkModeColorFilter.cpp156 unsigned alpha = SkColorGetA(color); in CreateModeFilter()
DSkRecordOpts.cpp141 paint->setAlpha(SkMulDiv255Round(paint->getAlpha(), SkColorGetA(layerColor))); in fold_opacity_layer_color_to_paint()
DSkColor.cpp17 return SkPremultiplyARGBInline(SkColorGetA(c), SkColorGetR(c), in SkPreMultiplyColor()
DSkBlitter_RGB16.cpp520 fScale = SkAlpha255To256(SkColorGetA(color)); in SkRGB16_Blitter()
916 if (0 == SkColorGetA(color)) { in SkBlitter_ChooseD565()
922 } else if (0xFF == SkColorGetA(color)) { in SkBlitter_ChooseD565()
/external/skia/include/core/
DSkColor.h61 #define SkColorGetA(color) (((color) >> 24) & 0xFF) macro
/external/skia/src/svg/
DSkSVGDevice.cpp36 return SkIntToScalar(SkColorGetA(color)) / SK_AlphaOPAQUE; in svg_opacity()
353 if (SK_AlphaOPAQUE != SkColorGetA(paint.getColor())) { in addPaint()
384 if (SK_AlphaOPAQUE != SkColorGetA(paint.getColor())) { in addPaint()
499 if (SK_AlphaOPAQUE != SkColorGetA(color)) { in addLinearGradientDef()
/external/skia/samplecode/
DSampleHT.cpp20 f[0] = SkIntToScalar(SkColorGetA(c)); in color_to_floats()

12