Home
last modified time | relevance | path

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

/external/skia/include/gpu/
DGrColor.h68 #define GrColorUnpackR(color) (((color) >> GrColor_SHIFT_R) & 0xFF) macro
88 unsigned r = GrColorUnpackR(c); in GrColorIsPMAssert()
101 U8CPU r = GrColorUnpackR(c); in GrInvertColor()
108 U8CPU r = SkMulDiv255Round(GrColorUnpackR(c0), GrColorUnpackR(c1)); in GrColorMul()
116 unsigned r = SkTMin<unsigned>(GrColorUnpackR(c0) + GrColorUnpackR(c1), 0xff); in GrColorSatAdd()
126 rgba[0] = GrColorUnpackR(color) * ONE_OVER_255; in GrColorToRGBAFloat()
144 unsigned r = GrColorUnpackR(color); in GrPremulColor()
157 unsigned r = GrColorUnpackR(color); in GrUnpremulColor()
DGrInvariantOutput.h123 fColor = GrColorPackRGBA(SkMulDiv255Round(GrColorUnpackR(fColor), alpha), in mulByKnownSingleComponent()
141 SkMulDiv255Round(GrColorUnpackR(fColor), GrColorUnpackR(color)), in mulByKnownFourComponents()
167 SkMulDiv255Round(preAlpha, GrColorUnpackR(color)), in mulAlphaByKnownFourComponents()
261 return *alpha == GrColorUnpackR(color) && *alpha == GrColorUnpackG(color) && in GetAlphaAndCheckSingleChannel()
DSkGr.h58 return SkPackARGB32(GrColorUnpackA(c), GrColorUnpackR(c), GrColorUnpackG(c), GrColorUnpackB(c)); in GrColorToSkPMColor()
/external/skia/tests/
DGrGetCoeffBlendKnownComponentsTest.cpp49 SkAbs32(GrColorUnpackR(baselineColor) - GrColorUnpackR(outColor)) > 1 || in DEF_TEST()
DRectangleTextureTest.cpp110 expectedBytes0[0] = GrColorUnpackR(color0); in test_clear()
125 expectedBytes1[0] = GrColorUnpackR(color1); in test_clear()
DVkClearTests.cpp32 GrColorUnpackR(clearColor), in does_full_buffer_contain_correct_color()
DGrPorterDuffTest.cpp513 TEST_ASSERT(229 == GrColorUnpackR(xpi.fBlendedColor.fKnownColor)); in test_color_unknown_no_coverage()
/external/skia/src/gpu/effects/
DGrConstColorProcessor.cpp54 GrColorUnpackR(color) * scale, in onSetData()
78 GrColor r = GrColorUnpackR(fColor); in onComputeInvariantOutput()
/external/skia/src/gpu/
DGrInvariantOutput.cpp26 return(GrColorUnpackR(fColor) == colorA && in colorComponentsAllEqual()
DGrFragmentProcessor.cpp189 color |= SkMulDiv255Round(GrColorUnpackR(c0), GrColorUnpackR(c1)) << in MulOutputByInputUnpremulColor()
243 GrColorUnpackR(color) * scale, in OverrideInput()
DGrTextureToYUVPlanes.cpp188 uint32_t y = GrColorUnpackR(tempYUV.get()[j * yuvSize.fWidth + i]); in GrTextureToYUVPlanes()
224 uint32_t u = GrColorUnpackR(tempUV.get()[j * uvSize.fWidth + i]); in GrTextureToYUVPlanes()
DGrBlend.cpp62 if ((kR_GrColorComponentFlag & fFlags) && value == GrColorUnpackR(fColor)) { in componentsWithValue()
/external/skia/src/gpu/batches/
DGrAtlasTextBatch.cpp274 (*fDistanceAdjustTable)[GrColorUnpackR(colorNoPreMul) >> kDistanceAdjustLumShift]; in setupDfProcessor()
/external/skia/src/gpu/gl/
DGrGLGpu.cpp2044 r = GrColorUnpackR(color) * scaleRGB; in onClear()
3623 channels[0] = GrColorUnpackR(color) * scale255; in drawDebugWireRect()