Home
last modified time | relevance | path

Searched refs:getColor (Results 1 – 25 of 244) sorted by relevance

12345678910

/third_party/flutter/skia/tests/
DGifTest.cpp65 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000); in test_gif_data_no_colormap()
76 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0xffff0000); in test_gif_data()
77 REPORTER_ASSERT(r, bm.getColor(1, 0) == 0xffffff00); in test_gif_data()
78 REPORTER_ASSERT(r, bm.getColor(2, 0) == 0xff00ffff); in test_gif_data()
79 REPORTER_ASSERT(r, bm.getColor(0, 1) == 0xff808080); in test_gif_data()
80 REPORTER_ASSERT(r, bm.getColor(1, 1) == 0xff000000); in test_gif_data()
81 REPORTER_ASSERT(r, bm.getColor(2, 1) == 0xff00ff00); in test_gif_data()
82 REPORTER_ASSERT(r, bm.getColor(0, 2) == 0xffffffff); in test_gif_data()
83 REPORTER_ASSERT(r, bm.getColor(1, 2) == 0xffff00ff); in test_gif_data()
84 REPORTER_ASSERT(r, bm.getColor(2, 2) == 0xff0000ff); in test_gif_data()
[all …]
DColorMatrixTest.cpp53 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
57 assert_color(reporter, SK_ColorGREEN, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
61 assert_color(reporter, SK_ColorRED, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
66 assert_color(reporter, SK_ColorWHITE, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
79 assert_color(reporter, SkColorSetARGB(128, 255, 0, 64), bitmap.getColor(0, 0), 2); in test_colorMatrixCTS()
84 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
92 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
97 assert_color(reporter, SK_ColorBLUE, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
DBitmapTest.cpp154 REPORTER_ASSERT(r, source.getColor(0, 0) == copy.getColor(0, 0)); in DEF_TEST()
163 INFOF(reporter, "expected: %x actual: %x\n", expected, bm.getColor(0, 0)); in test_erasecolor_premul()
164 REPORTER_ASSERT(reporter, bm.getColor(0, 0) == expected); in test_erasecolor_premul()
223 REPORTER_ASSERT(r, color == pm.getColor(0, 0)); in DEF_TEST()
225 REPORTER_ASSERT(r, 0 == SkColorGetA(pm.getColor(0, 0))); in DEF_TEST()
260 REPORTER_ASSERT(r, bm.getColor(0,0) == 0xff000000); in DEF_TEST()
262 REPORTER_ASSERT(r, bm.getColor(0,0) == 0x00000000); in DEF_TEST()
266 REPORTER_ASSERT(r, bm.getColor(0,0) != 0xff000000); in DEF_TEST()
267 REPORTER_ASSERT(r, bm.getColor(0,0) != 0x00000000); in DEF_TEST()
DSpecialImageTest.cpp100 REPORTER_ASSERT(reporter, SK_ColorBLUE == bm.getColor(kPad-1, kPad-1)); in test_image()
101 REPORTER_ASSERT(reporter, SK_ColorRED == bm.getColor(kPad, kPad)); in test_image()
102 REPORTER_ASSERT(reporter, SK_ColorRED == bm.getColor(kSmallerSize+kPad-1, in test_image()
104 REPORTER_ASSERT(reporter, SK_ColorBLUE == bm.getColor(kSmallerSize+kPad, in test_image()
315 REPORTER_ASSERT(reporter, redBM.getColor(0, 0) == SK_ColorRED, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
316 "0x%08x != 0x%08x", redBM.getColor(0, 0), SK_ColorRED); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
317 REPORTER_ASSERT(reporter, blueBM.getColor(0, 0) == SK_ColorBLUE, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
318 "0x%08x != 0x%08x", blueBM.getColor(0, 0), SK_ColorBLUE); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/skia/tests/
DGifTest.cpp65 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000); in test_gif_data_no_colormap()
76 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0xffff0000); in test_gif_data()
77 REPORTER_ASSERT(r, bm.getColor(1, 0) == 0xffffff00); in test_gif_data()
78 REPORTER_ASSERT(r, bm.getColor(2, 0) == 0xff00ffff); in test_gif_data()
79 REPORTER_ASSERT(r, bm.getColor(0, 1) == 0xff808080); in test_gif_data()
80 REPORTER_ASSERT(r, bm.getColor(1, 1) == 0xff000000); in test_gif_data()
81 REPORTER_ASSERT(r, bm.getColor(2, 1) == 0xff00ff00); in test_gif_data()
82 REPORTER_ASSERT(r, bm.getColor(0, 2) == 0xffffffff); in test_gif_data()
83 REPORTER_ASSERT(r, bm.getColor(1, 2) == 0xffff00ff); in test_gif_data()
84 REPORTER_ASSERT(r, bm.getColor(2, 2) == 0xff0000ff); in test_gif_data()
[all …]
DColorMatrixTest.cpp53 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
57 assert_color(reporter, SK_ColorGREEN, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
61 assert_color(reporter, SK_ColorRED, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
66 assert_color(reporter, SK_ColorWHITE, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
79 assert_color(reporter, SkColorSetARGB(128, 255, 0, 64), bitmap.getColor(0, 0), 2); in test_colorMatrixCTS()
84 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
92 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
97 assert_color(reporter, SK_ColorBLUE, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
DBitmapTest.cpp187 REPORTER_ASSERT(r, source.getColor(0, 0) == copy.getColor(0, 0)); in DEF_TEST()
196 INFOF(reporter, "expected: %x actual: %x\n", expected, bm.getColor(0, 0)); in test_erasecolor_premul()
197 REPORTER_ASSERT(reporter, bm.getColor(0, 0) == expected); in test_erasecolor_premul()
245 REPORTER_ASSERT(r, color == pm.getColor(0, 0)); in DEF_TEST()
247 REPORTER_ASSERT(r, 0 == SkColorGetA(pm.getColor(0, 0))); in DEF_TEST()
264 REPORTER_ASSERT(r, bm.getColor(0, 0) == SK_ColorBLUE); in DEF_TEST()
296 REPORTER_ASSERT(r, bm.getColor(0,0) == 0xff000000); in DEF_TEST()
298 REPORTER_ASSERT(r, bm.getColor(0,0) == 0x00000000); in DEF_TEST()
302 REPORTER_ASSERT(r, bm.getColor(0,0) != 0xff000000); in DEF_TEST()
303 REPORTER_ASSERT(r, bm.getColor(0,0) != 0x00000000); in DEF_TEST()
DDebugLayerManagerTest.cpp60 SkColor paintColor = pixmap.getColor(50, 50); in test_basic()
71 auto innerColor = pixmap.getColor(50, 50); in test_basic()
73 auto outerColor = pixmap.getColor(10, 50); in test_basic()
DExtendedSkColorTypeTests.cpp97 SkColor actual = pm.getColor(0, 0); in raster_tests()
107 SkColor actual = pm.getColor(0, 0); in raster_tests()
126 SkColor expected = srcPM.getColor(0, 0); in raster_tests()
127 SkColor actual = readbackPM.getColor(0, 0); in raster_tests()
153 SkColor expected = srcPM.getColor(0, 0); in raster_tests()
154 SkColor actual = readbackPM.getColor(0, 0); in raster_tests()
/third_party/skia/modules/skottie/tests/
DImage.cpp123 tst.c[0] == pmap.getColor(render_size.width() / 2, render_size.height() / 2)); in DEF_TEST()
125 tst.c[1] == pmap.getColor(1 , render_size.height() / 2)); in DEF_TEST()
127 tst.c[2] == pmap.getColor(render_size.width() / 2, 1)); in DEF_TEST()
129 tst.c[3] == pmap.getColor(render_size.width() - 1, render_size.height() / 2)); in DEF_TEST()
131 tst.c[4] == pmap.getColor(render_size.width() /2 , render_size.height() - 1)); in DEF_TEST()
/third_party/flutter/skia/docs/examples/
DPaint_copy_operator.cpp10 SkDebugf("SK_ColorRED %c= paint1.getColor()\n", SK_ColorRED == paint1.getColor() ? '=' : '!'); in draw()
11 SkDebugf("SK_ColorRED %c= paint2.getColor()\n", SK_ColorRED == paint2.getColor() ? '=' : '!'); in draw()
DPaint_copy_const_SkPaint.cpp11 SkDebugf("SK_ColorRED %c= paint1.getColor()\n", SK_ColorRED == paint1.getColor() ? '=' : '!'); in draw()
12 SkDebugf("SK_ColorBLUE %c= paint2.getColor()\n", SK_ColorBLUE == paint2.getColor() ? '=' : '!'); in draw()
DBitmap_getPixels.cpp14 bitmap.getColor(0, 1) == 0x00000000 ? '=' : '!'); in draw()
16 bitmap.getColor(0, 0) == 0xFFFFFFFF ? '=' : '!'); in draw()
DPixmap_writable_addr_2.cpp16 pixmap.getColor(0, 0) == 0x00000000 ? '=' : '!'); in draw()
18 pixmap.getColor(1, 2) == 0xFFFFFFFF ? '=' : '!'); in draw()
DPixmap_writable_addr.cpp16 pixmap.getColor(0, 1) == 0x00000000 ? '=' : '!'); in draw()
18 pixmap.getColor(0, 0) == 0xFFFFFFFF ? '=' : '!'); in draw()
/third_party/skia/docs/examples/
DPaint_copy_operator.cpp10 SkDebugf("SK_ColorRED %c= paint1.getColor()\n", SK_ColorRED == paint1.getColor() ? '=' : '!'); in draw()
11 SkDebugf("SK_ColorRED %c= paint2.getColor()\n", SK_ColorRED == paint2.getColor() ? '=' : '!'); in draw()
DPaint_copy_const_SkPaint.cpp11 SkDebugf("SK_ColorRED %c= paint1.getColor()\n", SK_ColorRED == paint1.getColor() ? '=' : '!'); in draw()
12 SkDebugf("SK_ColorBLUE %c= paint2.getColor()\n", SK_ColorBLUE == paint2.getColor() ? '=' : '!'); in draw()
DBitmap_getPixels.cpp14 bitmap.getColor(0, 1) == 0x00000000 ? '=' : '!'); in draw()
16 bitmap.getColor(0, 0) == 0xFFFFFFFF ? '=' : '!'); in draw()
DPixmap_writable_addr.cpp16 pixmap.getColor(0, 1) == 0x00000000 ? '=' : '!'); in draw()
18 pixmap.getColor(0, 0) == 0xFFFFFFFF ? '=' : '!'); in draw()
DPixmap_writable_addr_2.cpp16 pixmap.getColor(0, 0) == 0x00000000 ? '=' : '!'); in draw()
18 pixmap.getColor(1, 2) == 0xFFFFFFFF ? '=' : '!'); in draw()
/third_party/skia/third_party/externals/spirv-cross/shaders-msl/frag/
Dsample-position-func.frag7 vec4 getColor(int i)
14 FragColor = getColor(index);
/third_party/skia/modules/sksg/src/
DSkSGColorFilter.cpp76 return SkColorFilters::Blend(fColor->getColor(), fMode); in onRevalidateFilter()
108 const auto c0 = SkColor4f::FromColor(color0->getColor()), in Make2ColorGradient()
109 c1 = SkColor4f::FromColor(color1->getColor()); in Make2ColorGradient()
171 const SkColor c0 = colors[i ]->getColor(), in MakeNColorGradient()
172 c1 = colors[i + 1]->getColor(); in MakeNColorGradient()
/third_party/flutter/skia/modules/sksg/src/
DSkSGColorFilter.cpp76 return SkColorFilters::Blend(fColor->getColor(), fMode); in onRevalidateFilter()
108 const auto c0 = SkColor4f::FromColor(color0->getColor()), in Make2ColorGradient()
109 c1 = SkColor4f::FromColor(color1->getColor()); in Make2ColorGradient()
171 const SkColor c0 = colors[i ]->getColor(), in MakeNColorGradient()
172 c1 = colors[i + 1]->getColor(); in MakeNColorGradient()
/third_party/skia/samplecode/
DSampleShadowColor.cpp115 if (paint.getColor() != SK_ColorBLACK) { in drawShadowedPath()
116 SkColor color = paint.getColor(); in drawShadowedPath()
138 SkColor color = paint.getColor(); in drawShadowedPath()
156 strokePaint.setColor(paint.getColor()); in drawShadowedPath()
/third_party/flutter/skia/samplecode/
DSampleShadowColor.cpp115 if (paint.getColor() != SK_ColorBLACK) { in drawShadowedPath()
116 SkColor color = paint.getColor(); in drawShadowedPath()
138 SkColor color = paint.getColor(); in drawShadowedPath()
156 strokePaint.setColor(paint.getColor()); in drawShadowedPath()

12345678910