Home
last modified time | relevance | path

Searched refs:GrColorUnpackG (Results 1 – 15 of 15) sorted by relevance

/external/skia/include/gpu/
DGrColor.h69 #define GrColorUnpackG(color) (((color) >> GrColor_SHIFT_G) & 0xFF) macro
89 unsigned g = GrColorUnpackG(c); in GrColorIsPMAssert()
102 U8CPU g = GrColorUnpackG(c); in GrInvertColor()
109 U8CPU g = SkMulDiv255Round(GrColorUnpackG(c0), GrColorUnpackG(c1)); in GrColorMul()
117 unsigned g = SkTMin<unsigned>(GrColorUnpackG(c0) + GrColorUnpackG(c1), 0xff); in GrColorSatAdd()
127 rgba[1] = GrColorUnpackG(color) * ONE_OVER_255; in GrColorToRGBAFloat()
145 unsigned g = GrColorUnpackG(color); in GrPremulColor()
158 unsigned g = GrColorUnpackG(color); in GrUnpremulColor()
DGrInvariantOutput.h124 SkMulDiv255Round(GrColorUnpackG(fColor), alpha), in mulByKnownSingleComponent()
142 SkMulDiv255Round(GrColorUnpackG(fColor), GrColorUnpackG(color)), in mulByKnownFourComponents()
168 SkMulDiv255Round(preAlpha, GrColorUnpackG(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.cpp50 SkAbs32(GrColorUnpackG(baselineColor) - GrColorUnpackG(outColor)) > 1 || in DEF_TEST()
DTextureStorageAllocator.cpp80 REPORTER_ASSERT(reporter, GrColorUnpackG(dest) == 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
88 REPORTER_ASSERT(reporter, GrColorUnpackG(dest) == 255); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DRectangleTextureTest.cpp111 expectedBytes0[1] = GrColorUnpackG(color0); in test_clear()
126 expectedBytes1[1] = GrColorUnpackG(color1); in test_clear()
DVkClearTests.cpp31 GrColorUnpackG(clearColor), in does_full_buffer_contain_correct_color()
DGrPorterDuffTest.cpp916 TEST_ASSERT(82 == GrColorUnpackG(xpi.fBlendedColor.fKnownColor)); in test_color_opaque_no_coverage()
944 TEST_ASSERT(82 == GrColorUnpackG(xpi.fBlendedColor.fKnownColor)); in test_color_opaque_no_coverage()
/external/skia/src/gpu/effects/
DGrConstColorProcessor.cpp55 GrColorUnpackG(color) * scale, in onSetData()
79 bool colorIsSingleChannel = r == GrColorUnpackG(fColor) && r == GrColorUnpackB(fColor) && in onComputeInvariantOutput()
/external/skia/src/gpu/
DGrInvariantOutput.cpp27 GrColorUnpackG(fColor) == colorA && in colorComponentsAllEqual()
DGrFragmentProcessor.cpp193 color |= SkMulDiv255Round(GrColorUnpackG(c0), GrColorUnpackG(c1)) << in MulOutputByInputUnpremulColor()
244 GrColorUnpackG(color) * scale, in OverrideInput()
DGrTextureToYUVPlanes.cpp189 uint32_t u = GrColorUnpackG(tempYUV.get()[j * yuvSize.fWidth + i]); in GrTextureToYUVPlanes()
225 uint32_t v = GrColorUnpackG(tempUV.get()[j * uvSize.fWidth + i]); in GrTextureToYUVPlanes()
DGrBlend.cpp65 if ((kG_GrColorComponentFlag & fFlags) && value == GrColorUnpackG(fColor)) { in componentsWithValue()
/external/skia/src/gpu/batches/
DGrAtlasTextBatch.cpp276 (*fDistanceAdjustTable)[GrColorUnpackG(colorNoPreMul) >> kDistanceAdjustLumShift]; in setupDfProcessor()
/external/skia/src/gpu/gl/
DGrGLGpu.cpp2045 g = GrColorUnpackG(color) * scaleRGB; in onClear()
3624 channels[1] = GrColorUnpackG(color) * scale255; in drawDebugWireRect()