Home
last modified time | relevance | path

Searched refs:GrColorUnpackA (Results 1 – 14 of 14) sorted by relevance

/external/skia/include/gpu/
DGrColor.h71 #define GrColorUnpackA(color) (((color) >> GrColor_SHIFT_A) & 0xFF) macro
87 unsigned a = GrColorUnpackA(c); in GrColorIsPMAssert()
100 U8CPU a = GrColorUnpackA(c); in GrInvertColor()
111 U8CPU a = SkMulDiv255Round(GrColorUnpackA(c0), GrColorUnpackA(c1)); in GrColorMul()
119 unsigned a = SkTMin<unsigned>(GrColorUnpackA(c0) + GrColorUnpackA(c1), 0xff); in GrColorSatAdd()
129 rgba[3] = GrColorUnpackA(color) * ONE_OVER_255; in GrColorToRGBAFloat()
147 unsigned a = GrColorUnpackA(color); in GrPremulColor()
160 unsigned a = GrColorUnpackA(color); in GrUnpremulColor()
DGrInvariantOutput.h126 SkMulDiv255Round(GrColorUnpackA(fColor), alpha)); in mulByKnownSingleComponent()
144 SkMulDiv255Round(GrColorUnpackA(fColor), a)); in mulByKnownFourComponents()
160 GrColor preAlpha = GrColorUnpackA(fColor); in mulAlphaByKnownFourComponents()
188 GrColor a = GrColorUnpackA(fColor); in mulAlphaByKnownSingleComponent()
260 *alpha = GrColorUnpackA(color); in GetAlphaAndCheckSingleChannel()
294 return ((fValidFlags & kA_GrColorComponentFlag) && 0 == GrColorUnpackA(fColor)); in hasZeroAlpha()
298 return ((fValidFlags & kA_GrColorComponentFlag) && 0xFF == GrColorUnpackA(fColor)); in isOpaque()
DSkGr.h58 return SkPackARGB32(GrColorUnpackA(c), GrColorUnpackR(c), GrColorUnpackG(c), GrColorUnpackB(c)); in GrColorToSkPMColor()
/external/skia/src/gpu/
DGrBlend.cpp34 return MaskedColor(GrColorPackA4(GrColorUnpackA(in.fColor)), flags); in ExtractAlpha()
40 return MaskedColor(GrColorPackA4(0xFF - GrColorUnpackA(in.fColor)), flags); in ExtractInverseAlpha()
71 if ((kA_GrColorComponentFlag & fFlags) && value == GrColorUnpackA(fColor)) { in componentsWithValue()
DGrInvariantOutput.cpp25 unsigned colorA = GrColorUnpackA(fColor); in colorComponentsAllEqual()
DGrFragmentProcessor.cpp180 if (0 == GrColorUnpackA(inout->color()) || 0 == GrColorUnpackA(childOutput.color())) { in MulOutputByInputUnpremulColor()
246 GrColorUnpackA(color) * scale, in OverrideInput()
/external/skia/tests/
DGrGetCoeffBlendKnownComponentsTest.cpp48 if (SkAbs32(GrColorUnpackA(baselineColor) - GrColorUnpackA(outColor)) > 1 || in DEF_TEST()
DRectangleTextureTest.cpp113 expectedBytes0[3] = GrColorUnpackA(color0); in test_clear()
128 expectedBytes1[3] = GrColorUnpackA(color1); in test_clear()
DVkClearTests.cpp33 GrColorUnpackA(clearColor)); in does_full_buffer_contain_correct_color()
DGrPorterDuffTest.cpp716 TEST_ASSERT(255 == GrColorUnpackA(xpi.fBlendedColor.fKnownColor)); in test_color_opaque_with_coverage()
742 TEST_ASSERT(255 == GrColorUnpackA(xpi.fBlendedColor.fKnownColor)); in test_color_opaque_with_coverage()
917 TEST_ASSERT(255 == GrColorUnpackA(xpi.fBlendedColor.fKnownColor)); in test_color_opaque_no_coverage()
945 TEST_ASSERT(255 == GrColorUnpackA(xpi.fBlendedColor.fKnownColor)); in test_color_opaque_no_coverage()
/external/skia/src/gpu/effects/
DGrConstColorProcessor.cpp57 GrColorUnpackA(color) * scale, in onSetData()
80 r == GrColorUnpackA(fColor); in onComputeInvariantOutput()
DGrPorterDuffXferProcessor.cpp668 uint8_t alpha = GrColorUnpackA(blendConstant); in Create()
/external/skia/src/gpu/batches/
DGrDrawAtlasBatch.cpp115 int paintAlpha = GrColorUnpackA(installedGeo.fColor); in GrDrawAtlasBatch()
/external/skia/src/gpu/gl/
DGrGLGpu.cpp2042 a = GrColorUnpackA(color) * scale255; in onClear()
3626 channels[3] = GrColorUnpackA(color) * scale255; in drawDebugWireRect()