Home
last modified time | relevance | path

Searched refs:GrColorPackRGBA (Results 1 – 17 of 17) sorted by relevance

/external/skia/include/gpu/
DGrColor.h44 static inline GrColor GrColorPackRGBA(unsigned r, unsigned g, unsigned b, unsigned a) { in GrColorPackRGBA() function
104 return GrColorPackRGBA(0xff - r, 0xff - g, 0xff - b, 0xff - a); in GrInvertColor()
112 return GrColorPackRGBA(r, g, b, a); in GrColorMul()
120 return GrColorPackRGBA(r, g, b, a); in GrColorSatAdd()
148 return GrColorPackRGBA(SkMulDiv255Round(r, a), in GrPremulColor()
169 return GrColorPackRGBA(r, g, b, a); in GrUnpremulColor()
239 return GrColorPackRGBA( in toGrColor()
DGrTestUtils.h101 color = GrColorPackRGBA(0xFF, 0xFF, 0xFF, 0xFF); in GrRandomColor()
104 color = GrColorPackRGBA(0, 0, 0, 0); in GrRandomColor()
107 color = GrColorPackRGBA(random->nextULessThan(256), in GrRandomColor()
114 color = GrColorPackRGBA(random->nextRangeU(0, alpha), in GrRandomColor()
/external/skia/tests/
DVkClearTests.cpp31 matchColor = GrColorPackRGBA(GrColorUnpackB(clearColor), in does_full_buffer_contain_correct_color()
87 GrColor myColor = GrColorPackRGBA(0xFF, 0x7F, 0x40, 0x20); in basic_clear_test()
159 GrColor subColor1 = GrColorPackRGBA(0xFF, 0x00, 0x00, 0xFF); in sub_clear_test()
160 GrColor subColor2 = GrColorPackRGBA(0x00, 0xFF, 0x00, 0xFF); in sub_clear_test()
161 GrColor subColor3 = GrColorPackRGBA(0x00, 0x00, 0xFF, 0xFF); in sub_clear_test()
162 GrColor subColor4 = GrColorPackRGBA(0xFF, 0xFF, 0x00, 0xFF); in sub_clear_test()
DPreFlushCallbackTest.cpp222 GrColorPackRGBA(255, 0, 0, 255),
223 GrColorPackRGBA(0, 255, 0, 255),
224 GrColorPackRGBA(0, 0, 255, 255),
225 GrColorPackRGBA(0, 255, 255, 255),
226 GrColorPackRGBA(255, 0, 255, 255),
227 GrColorPackRGBA(255, 255, 0, 255),
228 GrColorPackRGBA(0, 0, 0, 255),
229 GrColorPackRGBA(128, 128, 128, 255),
230 GrColorPackRGBA(255, 255, 255, 255)
428 rtc->clear(nullptr, GrColorPackRGBA(255, 0, 0, 255), true); in make_upstream_image()
DTestUtils.cpp47 GrPremulColor(GrColorPackRGBA(x, y, x + y, 2*y)); in test_write_pixels()
98 GrPremulColor(GrColorPackRGBA(y, x, x * y, 2*y)); in test_copy_to_surface()
DRectangleTextureTest.cpp48 GrColor color0 = GrColorPackRGBA(0xA, 0xB, 0xC, 0xD); in test_clear()
68 GrColor color1 = GrColorPackRGBA(0x1, 0x2, 0x3, 0x4); in test_clear()
DGrGetCoeffBlendKnownComponentsTest.cpp22 return GrColorPackRGBA(SkGetPackedR32(c), SkGetPackedG32(c), SkGetPackedB32(c), in SkPMColorToGrColor()
DVkUploadPixelsTests.cpp28 data[i + j*width] = GrColorPackRGBA(red - (red>>8), green - (green>>8), 0xff, 0xff); in fill_pixel_data()
DImageStorageTest.cpp86 data[i + kS * j] = GrColorPackRGBA(i, j, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DReadWriteAlphaTest.cpp159 rgbaData[y * X_SIZE + x] = GrColorPackRGBA(6, 7, 8, alphaData[y * X_SIZE + x]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DGrPorterDuffTest.cpp434 GrProcessorSet::FragmentProcessorAnalysis analysis(GrColorPackRGBA(229, 0, 154, 240), in test_color_unknown_no_coverage()
960 color->setToConstant(GrColorPackRGBA(123, 45, 67, 221)); in test_lcd_coverage_fallback_case()
1021 GrPipelineAnalysisColor(GrColorPackRGBA(0, 82, 17, 100)),
1022 GrPipelineAnalysisColor(GrColorPackRGBA(0, 82, 17, 255))};
DProcessorTest.cpp254 GrColor color = GrColorPackRGBA(j, (uint8_t)(i + j), (uint8_t)(2 * j - i), i); in texel_color()
/external/skia/src/gpu/
DSkGr.h49 return GrColorPackRGBA(r, g, b, a); in SkColorToPremulGrColor()
57 return GrColorPackRGBA(r, g, b, a); in SkColorToUnpremulGrColor()
76 return GrColorPackRGBA(a, a, a, a); in SkColorAlphaToGrColor()
/external/skia/src/gpu/effects/
DGrConstColorProcessor.cpp105 color = GrColor4f::FromGrColor(GrColorPackRGBA(r, g, b, a)); in TestCreate()
/external/skia/include/private/
DGrSwizzle.h90 return GrColorPackRGBA(outR, outG, outB, outA); in applyTo()
/external/skia/src/effects/
DSkOverdrawColorFilter.cpp96 grColors[i] = GrColor4f::FromGrColor(GrColorPackRGBA(SkGetPackedR32(colors[i]), in Make()
/external/skia/src/gpu/ops/
DGrAtlasTextOp.cpp27 return GrColorPackRGBA(r, g, b, 0xff); in skcolor_to_grcolor_nopremultiply()