Home
last modified time | relevance | path

Searched refs:GrColor (Results 1 – 25 of 32) sorted by relevance

12

/third_party/skia/tests/
DProcessorTest.cpp205 static GrColor input_texel_color(int x, int y, SkScalar delta) { in input_texel_color()
231 GrColor* outBuffer) { in render_fp()
259 GrColor* rgbaData = new GrColor[kTestTextureSize * kTestTextureSize]; in init()
272 [](void* addr, void* context) { delete[](GrColor*) addr; }, nullptr); in init()
352 static std::vector<GrColor> make_input_pixels(int width, int height, SkScalar delta) { in make_input_pixels()
353 std::vector<GrColor> pixel(width * height); in make_input_pixels()
366 int width, int height, GrColor* pixel) { in make_input_texture()
381 static bool log_pixels(GrColor* pixels, int widthHeight, SkString* dst) { in log_pixels()
385 bmp.installPixels(info, pixels, widthHeight * sizeof(GrColor)); in log_pixels()
425 static bool legal_modulation(const GrColor inGr[3], const GrColor outGr[3]) { in legal_modulation()
[all …]
DSkDSLRuntimeEffectTest.cpp60 void test(GrColor TL, GrColor TR, GrColor BL, GrColor BR, in test()
80 GrColor actual[4]; in test()
87 GrColor expected[4] = {TL, TR, BL, BR}; in test()
99 void test(GrColor expected, PreTestFn preTestCallback = nullptr) { in test()
DSkRuntimeEffectTest.cpp288 std::array<GrColor, 4> expected) { in verify_2x2_surface_results() argument
289 std::array<GrColor, 4> actual; in verify_2x2_surface_results()
333 void test(std::array<GrColor, 4> expected, PreTestFn preTestCallback = nullptr) { in test() argument
350 void test(GrColor expected, PreTestFn preTestCallback = nullptr) { in test()
383 void test(std::array<GrColor, 4> expected, PreTestFn preTestCallback = nullptr) { in test() argument
400 void test(GrColor expected, PreTestFn preTestCallback = nullptr) { in test()
936 GrColor actual; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
937 GrPixmap pixmap(info, &actual, sizeof(GrColor)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DRectangleTextureTest.cpp45 GrColor color0 = GrColorPackRGBA(0xA, 0xB, 0xC, 0xD); in test_clear()
65 GrColor color1 = GrColorPackRGBA(0x1, 0x2, 0x3, 0x4); in test_clear()
151 GrColor refPixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DSkSLCross.cpp107 GrColor result; in run_test()
110 sizeof(GrColor)); in run_test()
DGrPipelineDynamicStateTest.cpp46 static const GrColor kMeshColors[kNumMeshes] {
56 GrColor fColor;
DTestUtils.h17 typedef uint32_t GrColor; typedef
DClearTest.cpp102 static const GrColor kColor1 = 0xABCDEF01; in clear_op_test()
103 static const GrColor kColor2 = ~kColor1; in clear_op_test()
/third_party/skia/src/gpu/ops/
DDrawAtlasOp.cpp123 texOffset += sizeof(GrColor); in DrawAtlasOpImpl()
124 vertexStride += sizeof(GrColor); in DrawAtlasOpImpl()
150 GrColor grColor = SkColorToPremulGrColor(spriteColor); in DrawAtlasOpImpl()
152 *(reinterpret_cast<GrColor*>(currVertex + sizeof(SkPoint))) = grColor; in DrawAtlasOpImpl()
153 *(reinterpret_cast<GrColor*>(currVertex + vertexStride + sizeof(SkPoint))) = grColor; in DrawAtlasOpImpl()
154 *(reinterpret_cast<GrColor*>(currVertex + 2 * vertexStride + sizeof(SkPoint))) = in DrawAtlasOpImpl()
156 *(reinterpret_cast<GrColor*>(currVertex + 3 * vertexStride + sizeof(SkPoint))) = in DrawAtlasOpImpl()
361 SkTArray<SkRect>* texRects, SkTArray<GrColor>* colors, in randomize_params()
377 SkTArray<GrColor> colors; in GR_DRAW_OP_TEST_DEFINE()
DShadowRRectOp.cpp196 ShadowCircularRRectOp(GrColor color, const SkRect& devRect, in ShadowCircularRRectOp()
251 GrColor fColor;
263 GrColor fColor;
270 GrColor color = args.fColor; in fillInCircleVerts()
399 GrColor color = args.fColor; in fillInRRectVerts()
707 GrColor color, in Make()
770 GrColor color = paint.getColor4f().toBytes_RGBA(); in GR_DRAW_OP_TEST_DEFINE()
DShadowRRectOp.h23 GrColor,
/third_party/skia/src/gpu/effects/
DGrShadowGeoProc.h35 GrColor color() const { return fColor; } in color()
48 GrColor fColor;
DGrBezierEffect.cpp187 GrColor color = GrTest::RandomColor(d->fRandom); in TestCreate()
340 GrColor color = GrTest::RandomColor(d->fRandom); in TestCreate()
DGrBitmapTextGeoProc.cpp224 GrColor color = GrTest::RandomColor(d->fRandom); in TestCreate()
/third_party/skia/src/gpu/
DGrColor.h25 typedef uint32_t GrColor; typedef
46 static inline GrColor GrColorPackRGBA(unsigned r, unsigned g, unsigned b, unsigned a) { in GrColorPackRGBA()
DSkGr.h45 static inline GrColor SkColorToPremulGrColor(SkColor c) { in SkColorToPremulGrColor()
54 static inline GrColor SkColorToUnpremulGrColor(SkColor c) { in SkColorToUnpremulGrColor()
DGrTestUtils.h56 GrColor RandomColor(SkRandom* random);
DGrTestUtils.cpp354 GrColor RandomColor(SkRandom* random) { in RandomColor()
365 GrColor color SK_INIT_TO_AVOID_WARNING; in RandomColor()
DGrDefaultGeoProcFactory.cpp267 GrColor color = GrTest::RandomColor(d->fRandom); in TestCreate()
/third_party/skia/bench/
DVertexColorSpaceBench.cpp138 Op(GrColor color) in Op()
153 Op(GrColor color, sk_sp<GrColorSpaceXform> colorSpaceXform) in Op()
249 GrColor fColor; in onPrepareDraws()
276 GrColor fColor;
DGlyphQuadFillBench.cpp69 GrColor grColor = SkColorToPremulGrColor(paint.getColor()); in onDraw()
/third_party/skia/src/gpu/text/
DGrTextBlob.cpp43 GrColor color;
48 ARGB2DVertex(SkPoint d, GrColor, AtlasPt a) : devicePos{d}, atlasPos{a} {} in ARGB2DVertex()
57 GrColor color;
62 ARGB3DVertex(SkPoint3 d, GrColor, AtlasPt a) : devicePos{d}, atlasPos{a} {} in ARGB3DVertex()
97 GrColor color, in fill_transformed_vertices_2D()
121 GrColor color, in fill_transformed_vertices_3D()
495 void fillVertexData(void* vertexDst, int offset, int count, GrColor color,
722 GrColor color, in direct_2D()
746 GrColor color, in generalized_direct_2D()
787 void DirectMaskSubRun::fillVertexData(void* vertexDst, int offset, int count, GrColor color, in fillVertexData()
[all …]
DGrTextBlob.h87 GrColor color, const SkMatrix& positionMatrix,
/third_party/skia/gm/
Dconstcolorprocessor.cpp86 constexpr GrColor kColors[] = { in onDraw()
93 constexpr GrColor kPaintColors[] = { in onDraw()
/third_party/skia/src/gpu/mtl/
DGrMtlOpsRenderPass.h17 typedef uint32_t GrColor; typedef

12