Searched refs:GrColorUnpackA (Results 1 – 14 of 14) sorted by relevance
/external/skia/include/gpu/ |
D | GrColor.h | 71 #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()
|
D | GrInvariantOutput.h | 126 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()
|
D | SkGr.h | 58 return SkPackARGB32(GrColorUnpackA(c), GrColorUnpackR(c), GrColorUnpackG(c), GrColorUnpackB(c)); in GrColorToSkPMColor()
|
/external/skia/src/gpu/ |
D | GrBlend.cpp | 34 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()
|
D | GrInvariantOutput.cpp | 25 unsigned colorA = GrColorUnpackA(fColor); in colorComponentsAllEqual()
|
D | GrFragmentProcessor.cpp | 180 if (0 == GrColorUnpackA(inout->color()) || 0 == GrColorUnpackA(childOutput.color())) { in MulOutputByInputUnpremulColor() 246 GrColorUnpackA(color) * scale, in OverrideInput()
|
/external/skia/tests/ |
D | GrGetCoeffBlendKnownComponentsTest.cpp | 48 if (SkAbs32(GrColorUnpackA(baselineColor) - GrColorUnpackA(outColor)) > 1 || in DEF_TEST()
|
D | RectangleTextureTest.cpp | 113 expectedBytes0[3] = GrColorUnpackA(color0); in test_clear() 128 expectedBytes1[3] = GrColorUnpackA(color1); in test_clear()
|
D | VkClearTests.cpp | 33 GrColorUnpackA(clearColor)); in does_full_buffer_contain_correct_color()
|
D | GrPorterDuffTest.cpp | 716 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/ |
D | GrConstColorProcessor.cpp | 57 GrColorUnpackA(color) * scale, in onSetData() 80 r == GrColorUnpackA(fColor); in onComputeInvariantOutput()
|
D | GrPorterDuffXferProcessor.cpp | 668 uint8_t alpha = GrColorUnpackA(blendConstant); in Create()
|
/external/skia/src/gpu/batches/ |
D | GrDrawAtlasBatch.cpp | 115 int paintAlpha = GrColorUnpackA(installedGeo.fColor); in GrDrawAtlasBatch()
|
/external/skia/src/gpu/gl/ |
D | GrGLGpu.cpp | 2042 a = GrColorUnpackA(color) * scale255; in onClear() 3626 channels[3] = GrColorUnpackA(color) * scale255; in drawDebugWireRect()
|