Home
last modified time | relevance | path

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

123

/external/skqp/tests/
DProcessorTest.cpp236 static GrColor input_texel_color(int i, int j, SkScalar delta) { in input_texel_color()
268 sk_sp<GrTextureProxy> inputDataProxy, GrColor* buffer) { in render_fp()
274 memset(buffer, 0x0, sizeof(GrColor) * width * height); in render_fp()
287 std::unique_ptr<GrColor[]> rgbaData(new GrColor[kTestTextureSize * kTestTextureSize]); in init_test_textures()
327 std::unique_ptr<GrColor[]> data(new GrColor[width * height]); in make_input_texture()
382 bool legal_modulation(const GrColor& in1, const GrColor& in2, const GrColor& in3, in legal_modulation()
383 const GrColor& out1, const GrColor& out2, const GrColor& out3, in legal_modulation()
469 std::unique_ptr<GrColor[]> readData1(new GrColor[kRenderSize * kRenderSize]); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
470 std::unique_ptr<GrColor[]> readData2(new GrColor[kRenderSize * kRenderSize]); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
471 std::unique_ptr<GrColor[]> readData3(new GrColor[kRenderSize * kRenderSize]); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
[all …]
DTransferPixelsTest.cpp25 GrColor* data) { in fill_transfer_data()
38 bool does_full_buffer_contain_correct_values(GrColor* srcBuffer, in does_full_buffer_contain_correct_values()
39 GrColor* dstBuffer, in does_full_buffer_contain_correct_values()
44 GrColor* srcPtr = srcBuffer; in does_full_buffer_contain_correct_values()
45 GrColor* dstPtr = dstBuffer; in does_full_buffer_contain_correct_values()
78 size_t rowBytes = kBufferWidth * sizeof(GrColor); in basic_transfer_test()
79 SkAutoTMalloc<GrColor> srcBuffer(kBufferWidth*kBufferHeight); in basic_transfer_test()
80 SkAutoTMalloc<GrColor> dstBuffer(kBufferWidth*kBufferHeight); in basic_transfer_test()
162 size_t offset = sizeof(GrColor) * (kTop * kBufferWidth + kLeft); in basic_transfer_test()
DTestUtils.h13 typedef uint32_t GrColor; typedef
36 void fill_pixel_data(int width, int height, GrColor* data);
39 bool does_full_buffer_contain_correct_color(GrColor* srcBuffer, GrColor* dstBuffer, int width,
DGrUploadPixelsTests.cpp26 SkAutoTMalloc<GrColor> srcBuffer(kWidth*kHeight); in basic_texture_test()
27 SkAutoTMalloc<GrColor> dstBuffer(kWidth*kHeight); in basic_texture_test()
50 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
80 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
DTestUtils.cpp120 void fill_pixel_data(int width, int height, GrColor* data) { in fill_pixel_data()
131 bool does_full_buffer_contain_correct_color(GrColor* srcBuffer, in does_full_buffer_contain_correct_color()
132 GrColor* dstBuffer, in does_full_buffer_contain_correct_color()
135 GrColor* srcPtr = srcBuffer; in does_full_buffer_contain_correct_color()
136 GrColor* dstPtr = dstBuffer; in does_full_buffer_contain_correct_color()
DGrTestingBackendTextureUploadTest.cpp21 SkAutoTMalloc<GrColor> srcBuffer; in testing_only_texture_test()
26 SkAutoTMalloc<GrColor> dstBuffer(kWidth * kHeight); in testing_only_texture_test()
66 memset(srcBuffer, 0, kWidth * kHeight * sizeof(GrColor)); in testing_only_texture_test()
DRectangleTextureTest.cpp51 GrColor color0 = GrColorPackRGBA(0xA, 0xB, 0xC, 0xD); in test_clear()
72 GrColor color1 = GrColorPackRGBA(0x1, 0x2, 0x3, 0x4); in test_clear()
101 GrColor pixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
130 GrColor refPixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DPackedConfigsTextureTest.cpp75 const SkTDArray<GrColor>& readBuffer) { in check_565()
79 GrColor test = readBuffer[i + j * DEV_H]; in check_565()
102 SkTDArray<GrColor> readBuffer; in run_test()
DOnFlushCallbackTest.cpp97 static const int kLocalOffset = sizeof(SkPoint) + sizeof(GrColor); in onPrepareDraws()
142 GrColor* color = (GrColor*)((intptr_t)vertices + kColorOffset); in onPrepareDraws()
145 color = (GrColor*)((intptr_t)color + vertexStride); in onPrepareDraws()
227 static const GrColor kColors[kMaxIDs];
238 const GrColor AtlasedRectOp::kColors[kMaxIDs] = {
/external/skia/tests/
DProcessorTest.cpp207 static GrColor input_texel_color(int i, int j, SkScalar delta) { in input_texel_color()
245 GrColor* outBuffer) { in render_fp()
273 GrColor* rgbaData = new GrColor[kTestTextureSize * kTestTextureSize]; in init()
286 [](void* addr, void* context) { delete[](GrColor*) addr; }, nullptr); in init()
366 std::vector<GrColor> make_input_pixels(int width, int height, SkScalar delta) { in make_input_pixels()
367 std::vector<GrColor> pixel(width * height); in make_input_pixels()
380 int width, int height, GrColor* pixel) { in make_input_texture()
395 bool log_pixels(GrColor* pixels, int widthHeight, SkString* dst) { in log_pixels()
399 bmp.installPixels(info, pixels, widthHeight * sizeof(GrColor)); in log_pixels()
439 bool legal_modulation(const GrColor in[3], const GrColor out[3]) { in legal_modulation()
[all …]
DSkDSLRuntimeEffectTest.cpp54 void test(GrColor TL, GrColor TR, GrColor BL, GrColor BR, in test()
74 GrColor actual[4]; in test()
81 GrColor expected[4] = {TL, TR, BL, BR}; in test()
93 void test(GrColor expected, PreTestFn preTestCallback = nullptr) { in test()
DSkRuntimeEffectTest.cpp279 void test(GrColor TL, GrColor TR, GrColor BL, GrColor BR, in test()
299 GrColor actual[4]; in test()
306 GrColor expected[4] = {TL, TR, BL, BR}; in test()
318 void test(GrColor expected, PreTestFn preTestCallback = nullptr) { in test()
DDSLFPTest.cpp59 const GrColor* color = static_cast<const GrColor*>(dstPM.addr()); in test_dsl_fp()
DOnFlushCallbackTest.cpp131 static const int kLocalOffset = sizeof(SkPoint) + sizeof(GrColor); in onPrepareDraws()
171 GrColor* color = (GrColor*)((intptr_t)vertices + kColorOffset); in onPrepareDraws()
174 color = (GrColor*)((intptr_t)color + vertexStride); in onPrepareDraws()
263 static const GrColor kColors[kMaxIDs];
274 const GrColor AtlasedRectOp::kColors[kMaxIDs] = {
/external/skqp/src/gpu/ops/
DGrDrawAtlasOp.cpp47 texOffset += sizeof(GrColor); in GrDrawAtlasOp()
48 vertexStride += sizeof(GrColor); in GrDrawAtlasOp()
73 GrColor grColor = SkColorToPremulGrColor(color); in GrDrawAtlasOp()
75 *(reinterpret_cast<GrColor*>(currVertex + sizeof(SkPoint))) = grColor; in GrDrawAtlasOp()
76 *(reinterpret_cast<GrColor*>(currVertex + vertexStride + sizeof(SkPoint))) = grColor; in GrDrawAtlasOp()
77 *(reinterpret_cast<GrColor*>(currVertex + 2 * vertexStride + sizeof(SkPoint))) = in GrDrawAtlasOp()
79 *(reinterpret_cast<GrColor*>(currVertex + 3 * vertexStride + sizeof(SkPoint))) = in GrDrawAtlasOp()
232 SkTArray<SkRect>* texRects, SkTArray<GrColor>* colors, in randomize_params()
248 SkTArray<GrColor> colors; in GR_DRAW_OP_TEST_DEFINE()
DGrShadowRRectOp.cpp194 ShadowCircularRRectOp(GrColor color, const SkRect& devRect, in ShadowCircularRRectOp()
264 GrColor fColor;
276 GrColor fColor;
283 GrColor color = args.fColor; in fillInCircleVerts()
412 GrColor color = args.fColor; in fillInRRectVerts()
624 GrColor color, in Make()
674 GrColor color = paint.getColor4f().toBytes_RGBA(); in GR_DRAW_OP_TEST_DEFINE()
/external/skqp/src/gpu/text/
DGrTextBlob.h68 static sk_sp<GrTextBlob> Make(int glyphCount, int runCount, GrColor color);
212 static const size_t kGrayTextVASize = sizeof(SkPoint) + sizeof(GrColor) + sizeof(SkIPoint16);
214 sizeof(SkPoint3) + sizeof(GrColor) + sizeof(SkIPoint16);
278 SubRun(Run* run, const SkAutoDescriptor& desc, GrColor color) in SubRun()
306 void setColor(GrColor color) { fColor = color; } in setColor()
307 GrColor color() const { return fColor; } in color()
365 GrColor fColor{GrColor_ILLEGAL};
403 explicit Run(GrTextBlob* blob, GrColor color) in Run()
465 SubRun* pushBackSubRun(const SkAutoDescriptor& desc, GrColor color) { in pushBackSubRun()
513 GrColor fColor;
[all …]
DGrTextBlobVertexRegenerator.cpp33 static void regen_colors(char* vertex, size_t vertexStride, GrColor color) { in regen_colors()
36 size_t colorOffset = vertexStride - sizeof(SkIPoint16) - sizeof(GrColor); in regen_colors()
37 GrColor* vcolor = reinterpret_cast<GrColor*>(vertex + colorOffset); in regen_colors()
40 vcolor = SkTAddOffset<GrColor>(vcolor, vertexStride); in regen_colors()
96 GrColor hackColor; in regen_texcoords()
122 GrColor color, in VertexRegenerator()
/external/skia/src/gpu/ops/
DGrDrawAtlasOp.cpp124 texOffset += sizeof(GrColor); in DrawAtlasOp()
125 vertexStride += sizeof(GrColor); in DrawAtlasOp()
150 GrColor grColor = SkColorToPremulGrColor(color); in DrawAtlasOp()
152 *(reinterpret_cast<GrColor*>(currVertex + sizeof(SkPoint))) = grColor; in DrawAtlasOp()
153 *(reinterpret_cast<GrColor*>(currVertex + vertexStride + sizeof(SkPoint))) = grColor; in DrawAtlasOp()
154 *(reinterpret_cast<GrColor*>(currVertex + 2 * vertexStride + sizeof(SkPoint))) = in DrawAtlasOp()
156 *(reinterpret_cast<GrColor*>(currVertex + 3 * vertexStride + sizeof(SkPoint))) = in DrawAtlasOp()
351 SkTArray<SkRect>* texRects, SkTArray<GrColor>* colors, in randomize_params()
367 SkTArray<GrColor> colors; in GR_DRAW_OP_TEST_DEFINE()
/external/skqp/src/gpu/effects/
DGrShadowGeoProc.h31 GrColor color() const { return fColor; } in color()
40 GrColor fColor;
/external/skia/src/gpu/effects/
DGrShadowGeoProc.h35 GrColor color() const { return fColor; } in color()
46 GrColor fColor;
/external/skia/src/gpu/
DGrColor.h24 typedef uint32_t GrColor; typedef
45 static inline GrColor GrColorPackRGBA(unsigned r, unsigned g, unsigned b, unsigned a) { in GrColorPackRGBA()
DGrTestUtils.h98 static inline GrColor GrRandomColor(SkRandom* random) { in GrRandomColor()
109 GrColor color SK_INIT_TO_AVOID_WARNING; in GrRandomColor()
/external/skqp/include/private/
DGrColor.h23 typedef uint32_t GrColor; typedef
44 static inline GrColor GrColorPackRGBA(unsigned r, unsigned g, unsigned b, unsigned a) { in GrColorPackRGBA()
/external/skqp/bench/
DVertexColorSpaceBench.cpp127 Op(GrColor color) in Op()
142 Op(GrColor color, sk_sp<GrColorSpaceXform> colorSpaceXform) in Op()
210 GrColor fColor; in onPrepareDraws()
231 GrColor fColor;

123