Home
last modified time | relevance | path

Searched refs:colorCount (Results 1 – 25 of 26) sorted by relevance

12

/external/skqp/src/shaders/gradients/
DSkGradientShader.cpp459 SkColor4fXformer::SkColor4fXformer(const SkColor4f* colors, int colorCount, in SkColor4fXformer() argument
464 fStorage.reset(colorCount); in SkColor4fXformer()
466 auto info = SkImageInfo::Make(colorCount,1, kRGBA_F32_SkColorType, kUnpremul_SkAlphaType); in SkColor4fXformer()
507 const SkScalar pos[], int colorCount, in desc_init() argument
509 SkASSERT(colorCount > 1); in desc_init()
514 desc->fCount = colorCount; in desc_init()
521 int colorCount) { in average_gradient_color() argument
528 SkScalar wScale = pos ? 0.5 : 0.5 / (colorCount - 1); in average_gradient_color()
529 for (int i = 0; i < colorCount - 1; ++i) { in average_gradient_color()
547 if (pos[colorCount - 1] < SK_Scalar1) { in average_gradient_color()
[all …]
DSkGradientShaderPriv.h139 SkColor4fXformer(const SkColor4f* colors, int colorCount, SkColorSpace* src, SkColorSpace* dst);
/external/skia/src/shaders/gradients/
DSkGradientShader.cpp631 SkColor4fXformer::SkColor4fXformer(const SkColor4f* colors, int colorCount, in SkColor4fXformer() argument
636 fStorage.reset(colorCount); in SkColor4fXformer()
638 auto info = SkImageInfo::Make(colorCount,1, kRGBA_F32_SkColorType, kUnpremul_SkAlphaType); in SkColor4fXformer()
681 const SkScalar pos[], int colorCount, in desc_init() argument
683 SkASSERT(colorCount > 1); in desc_init()
688 desc->fCount = colorCount; in desc_init()
695 int colorCount) { in average_gradient_color() argument
701 for (int i = 0; i < colorCount - 1; ++i) { in average_gradient_color()
725 if (i == colorCount - 2) { in average_gradient_color()
729 Sk4f c = Sk4f::Load(&colors[colorCount - 1]); in average_gradient_color()
[all …]
DSkGradientShaderPriv.h149 SkColor4fXformer(const SkColor4f* colors, int colorCount, SkColorSpace* src, SkColorSpace* dst);
/external/skqp/tools/lua/
Dgradients.lua50 gradients[i].colorCount = g.colorCount
55 for j = 1, g.colorCount, 1 do
56 if not LuaDoubleNearlyEqual(g.positions[j], (j-1)/(g.colorCount-1)) then
63 for j = 2, g.colorCount, 1 do
73 for j = 1, g.colorCount, 1 do
86 for j = 1, v.colorCount , 1 do
88 if j ~= v.colorCount then
95 v.colorCount,
/external/skia/src/c/
Dsk_effects.cpp52 int colorCount, in sk_shader_new_linear_gradient() argument
67 colorPos, colorCount, in sk_shader_new_linear_gradient()
79 int colorCount, in sk_shader_new_radial_gradient() argument
96 colorCount, mode, 0, &matrix).release(); in sk_shader_new_radial_gradient()
102 int colorCount, in sk_shader_new_sweep_gradient() argument
114 colorCount, 0, &matrix).release(); in sk_shader_new_sweep_gradient()
123 int colorCount, in sk_shader_new_two_point_conical_gradient() argument
142 colorCount, mode, 0, &matrix).release(); in sk_shader_new_two_point_conical_gradient()
/external/skqp/src/c/
Dsk_effects.cpp52 int colorCount, in sk_shader_new_linear_gradient() argument
67 colorPos, colorCount, in sk_shader_new_linear_gradient()
79 int colorCount, in sk_shader_new_radial_gradient() argument
96 colorCount, mode, 0, &matrix).release(); in sk_shader_new_radial_gradient()
102 int colorCount, in sk_shader_new_sweep_gradient() argument
114 colorCount, 0, &matrix).release(); in sk_shader_new_sweep_gradient()
123 int colorCount, in sk_shader_new_two_point_conical_gradient() argument
142 colorCount, mode, 0, &matrix).release(); in sk_shader_new_two_point_conical_gradient()
/external/skqp/include/c/
Dsk_shader.h48 int colorCount,
78 int colorCount,
102 int colorCount,
137 int colorCount,
/external/skia/include/c/
Dsk_shader.h48 int colorCount,
78 int colorCount,
102 int colorCount,
137 int colorCount,
/external/skqp/gm/
Danalytic_gradients.cpp145 int colorCount = colorCounts[cellCol]; in onDraw() local
151 SkAutoSTMalloc<4, SkColor> colors(colorCount); in onDraw()
152 SkAutoSTMalloc<4, SkScalar> positions(colorCount); in onDraw()
154 for (int i = 0; i < colorCount; i++) { in onDraw()
164 colorCount, in onDraw()
Dshallowgradient.cpp54 const int colorCount = SK_ARRAY_COUNT(colors); in onDraw() local
60 paint.setShader(fProc(colors, colorCount, size)); in onDraw()
/external/skia/gm/
Danalytic_gradients.cpp157 int colorCount = colorCounts[cellCol]; in onDraw() local
163 SkAutoSTMalloc<4, SkColor> colors(colorCount); in onDraw()
164 SkAutoSTMalloc<4, SkScalar> positions(colorCount); in onDraw()
166 for (int i = 0; i < colorCount; i++) { in onDraw()
176 colorCount, in onDraw()
Dshallowgradient.cpp63 const int colorCount = SK_ARRAY_COUNT(colors); in onDraw() local
69 paint.setShader(fProc(colors, colorCount, size)); in onDraw()
/external/skia/bench/
DHardStopGradientBench_ScaleNumHardStops.cpp20 HardStopGradientBench_ScaleNumHardStops(int colorCount, int hardStopCount) { in HardStopGradientBench_ScaleNumHardStops() argument
21 SkASSERT(hardStopCount <= colorCount/2); in HardStopGradientBench_ScaleNumHardStops()
24 colorCount, hardStopCount); in HardStopGradientBench_ScaleNumHardStops()
26 fColorCount = colorCount; in HardStopGradientBench_ScaleNumHardStops()
/external/skqp/bench/
DHardStopGradientBench_ScaleNumHardStops.cpp19 HardStopGradientBench_ScaleNumHardStops(int colorCount, int hardStopCount) { in HardStopGradientBench_ScaleNumHardStops() argument
20 SkASSERT(hardStopCount <= colorCount/2); in HardStopGradientBench_ScaleNumHardStops()
23 colorCount, hardStopCount); in HardStopGradientBench_ScaleNumHardStops()
25 fColorCount = colorCount; in HardStopGradientBench_ScaleNumHardStops()
/external/angle/src/tests/gl_tests/
DBlendMinMaxTest.cpp55 const size_t colorCount = 128; in runTest() local
56 Color colors[colorCount]; in runTest()
57 for (size_t i = 0; i < colorCount; i++) in runTest()
67 for (size_t i = 0; i < colorCount; i++) in runTest()
DCopyTextureTest.cpp316 const uint8_t *getSourceColors(GLenum sourceFormat, size_t *colorCount, uint8_t *componentCount) in getSourceColors() argument
370 *colorCount = 7; in getSourceColors()
444 size_t colorCount; in testCopyTexture() local
446 const uint8_t *srcColors = getSourceColors(sourceFormat, &colorCount, &componentCount); in testCopyTexture()
448 std::vector<GLColor> destColors(colorCount); in testCopyTexture()
449 for (size_t i = 0; i < colorCount; ++i) in testCopyTexture()
455 for (size_t i = 0; i < colorCount - 3; ++i) in testCopyTexture()
511 size_t colorCount; in testCopySubTexture() local
513 const uint8_t *srcColors = getSourceColors(sourceFormat, &colorCount, &componentCount); in testCopySubTexture()
515 std::vector<GLColor> destColors(colorCount); in testCopySubTexture()
[all …]
DTextureTest.cpp3318 GLuint colorCount = 0; in TEST_P() local
3399 FillLevel(0, texWidth, texHeight, kNewMipColors[colorCount], cubeMap, false); in TEST_P()
3413 EXPECT_PIXEL_COLOR_EQ(0, 0, kNewMipColors[colorCount]); in TEST_P()
3415 colorCount = (colorCount + 1) % sizeof(kNewMipColors); in TEST_P()
3416 FillLevel(0, texWidth, texHeight, kNewMipColors[colorCount], cubeMap, false); in TEST_P()
3423 EXPECT_PIXEL_COLOR_EQ(0, 0, kNewMipColors[colorCount]); in TEST_P()
3425 colorCount = (colorCount + 1) % sizeof(kNewMipColors); in TEST_P()
3426 FillLevel(0, texWidth, texHeight, kNewMipColors[colorCount], cubeMap, true); in TEST_P()
3431 EXPECT_PIXEL_COLOR_EQ(0, 0, kNewMipColors[colorCount]); in TEST_P()
/external/skia/fuzz/
DFuzzCanvas.cpp157 static void fuzz_gradient_stops(Fuzz* fuzz, SkScalar* pos, int colorCount) { in fuzz_gradient_stops() argument
159 for (int i = 0; i < colorCount; ++i) { in fuzz_gradient_stops()
164 for (int i = 0; i < colorCount; ++i) { in fuzz_gradient_stops()
168 pos[colorCount - 1] = 1.0f; in fuzz_gradient_stops()
241 int colorCount; in make_fuzz_shader() local
244 fuzz->nextRange(&colorCount, 2, kMaxColors); in make_fuzz_shader()
245 fuzz->nextN(colors, colorCount); in make_fuzz_shader()
252 fuzz_gradient_stops(fuzz, pos, colorCount); in make_fuzz_shader()
254 return SkGradientShader::MakeLinear(pts, colors, usePos ? pos : nullptr, colorCount, in make_fuzz_shader()
261 int colorCount; in make_fuzz_shader() local
[all …]
/external/skqp/fuzz/
DFuzzCanvas.cpp174 static void fuzz_gradient_stops(Fuzz* fuzz, SkScalar* pos, int colorCount) { in fuzz_gradient_stops() argument
176 for (int i = 0; i < colorCount; ++i) { in fuzz_gradient_stops()
181 for (int i = 0; i < colorCount; ++i) { in fuzz_gradient_stops()
185 pos[colorCount - 1] = 1.0f; in fuzz_gradient_stops()
268 int colorCount; in make_fuzz_shader() local
271 fuzz->nextRange(&colorCount, 2, kMaxColors); in make_fuzz_shader()
272 fuzz->nextN(colors, colorCount); in make_fuzz_shader()
279 fuzz_gradient_stops(fuzz, pos, colorCount); in make_fuzz_shader()
281 return SkGradientShader::MakeLinear(pts, colors, usePos ? pos : nullptr, colorCount, in make_fuzz_shader()
288 int colorCount; in make_fuzz_shader() local
[all …]
/external/skqp/src/pdf/
DSkPDFGradientShader.cpp226 int colorCount = info.fColorCount; in gradientStitchCode() local
227 std::vector<SkColor> colors(info.fColors, info.fColors + colorCount); in gradientStitchCode()
228 std::vector<SkScalar> colorOffsets(info.fColorOffsets, info.fColorOffsets + colorCount); in gradientStitchCode()
231 while (i < colorCount - 1) { in gradientStitchCode()
239 colorCount -= 1; in gradientStitchCode()
247 for (i = 1; i < colorCount - 1; i++) { in gradientStitchCode()
257 SkAutoSTMalloc<4, ColorTuple> colorDataAlloc(colorCount); in gradientStitchCode()
259 for (int i = 0; i < colorCount; i++) { in gradientStitchCode()
266 if (colorCount == 2) in gradientStitchCode()
276 for (int i = 1; i < colorCount; i++) { in gradientStitchCode()
/external/skia/src/pdf/
DSkPDFGradientShader.cpp226 int colorCount = info.fColorCount; in gradientStitchCode() local
227 std::vector<SkColor> colors(info.fColors, info.fColors + colorCount); in gradientStitchCode()
228 std::vector<SkScalar> colorOffsets(info.fColorOffsets, info.fColorOffsets + colorCount); in gradientStitchCode()
231 while (i < colorCount - 1) { in gradientStitchCode()
239 colorCount -= 1; in gradientStitchCode()
247 for (i = 1; i < colorCount - 1; i++) { in gradientStitchCode()
257 SkAutoSTMalloc<4, ColorTuple> colorDataAlloc(colorCount); in gradientStitchCode()
259 for (int i = 0; i < colorCount; i++) { in gradientStitchCode()
266 if (colorCount == 2) in gradientStitchCode()
276 for (int i = 1; i < colorCount; i++) { in gradientStitchCode()
/external/deqp/modules/egl/
DteglNativeColorMappingTests.cpp323 …ig, const glw::Functions& gl, bool renderColor, int waitFrames, size_t colorCount, const tcu::Vec4… in testNativeWindow() argument
338 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++) in testNativeWindow()
366 …, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4… in testNativePixmap() argument
381 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++) in testNativePixmap()
407 …, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4… in testNativePixmapCopy() argument
421 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++) in testNativePixmapCopy()
/external/deqp/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassFragmentDensityMapTests.cpp1821 std::map<tcu::Vec4, deUint32, Vec4Sorter> colorCount; in verifyImage() local
1832 auto it = colorCount.find(outputColor); in verifyImage()
1833 if (it == end(colorCount)) in verifyImage()
1834 it = colorCount.insert({ outputColor, 0u }).first; in verifyImage()
1840 for (const auto& color : colorCount) in verifyImage()
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawInstancedTests.cpp814 …const int colorCount = instanceDivisor == 0 ? 1 : (instanceCount + firstInstance + instanceDivisor… in prepareVertexData() local
817 m_instancedColor.push_back(tcu::Vec4(0.0, (float)(1.0 - i * 1.0 / colorCount) / 2, 0.0, 1.0)); in prepareVertexData()

12