Home
last modified time | relevance | path

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

/third_party/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);
/third_party/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()
/third_party/skia/include/c/
Dsk_shader.h48 int colorCount,
78 int colorCount,
102 int colorCount,
137 int colorCount,
/third_party/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()
/third_party/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()
/third_party/skia/third_party/externals/angle2/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.cpp3351 GLuint colorCount = 0; in testTextureSize() local
3426 FillLevel(0, texWidth, texHeight, kNewMipColors[colorCount], cubeMap, false); in testTextureSize()
3448 EXPECT_PIXEL_COLOR_EQ(0, 0, kNewMipColors[colorCount]); in testTextureSize()
3450 colorCount = (colorCount + 1) % kNewMipColors.size(); in testTextureSize()
3451 FillLevel(0, texWidth, texHeight, kNewMipColors[colorCount], cubeMap, false); in testTextureSize()
3459 EXPECT_PIXEL_COLOR_EQ(0, 0, kNewMipColors[colorCount]); in testTextureSize()
3461 colorCount = (colorCount + 1) % kNewMipColors.size(); in testTextureSize()
3462 FillLevel(0, texWidth, texHeight, kNewMipColors[colorCount], cubeMap, true); in testTextureSize()
3468 EXPECT_PIXEL_COLOR_EQ(0, 0, kNewMipColors[colorCount]); in testTextureSize()
/third_party/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 …]
/third_party/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 idx = 0; idx < colorCount; idx++) { in gradientStitchCode()
266 if (colorCount == 2) in gradientStitchCode()
276 for (int idx = 1; idx < colorCount; idx++) { in gradientStitchCode()
/third_party/vk-gl-cts/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()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmPhysicalStorageBufferPointerTests.cpp718 const deUint32 colorCount = 21; in prepareColorBuffer() local
719 tcu::Vec4 colors [colorCount]; in prepareColorBuffer()
722 for (deUint32 c = 0; c < colorCount; ++c) in prepareColorBuffer()
735 *j = colors[std::distance(begin, j) % colorCount]; in prepareColorBuffer()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassFragmentDensityMapTests.cpp2228 std::map<tcu::Vec4, deUint32, Vec4Sorter> colorCount; in verifyImage() local
2239 auto it = colorCount.find(outputColor); in verifyImage()
2240 if (it == end(colorCount)) in verifyImage()
2241 it = colorCount.insert({ outputColor, 0u }).first; in verifyImage()
2247 for (const auto& color : colorCount) in verifyImage()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawMultipleInterpolationTests.cpp184 const auto colorCount = (m_params.includeSampleDecoration ? COUNT : (COUNT - 1)); in initPrograms() local
207 << " const vec4 in_colors[" + de::toString(colorCount) + "] = vec4[](\n" in initPrograms()
DvktDrawInstancedTests.cpp845 …const int colorCount = instanceDivisor == 0 ? 1 : (instanceCount + firstInstance + instanceDivisor… in prepareVertexData() local
848 m_instancedColor.push_back(tcu::Vec4(0.0, (float)(1.0 - i * 1.0 / colorCount) / 2, 0.0, 1.0)); in prepareVertexData()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineMultisampleMixedAttachmentSamplesTests.cpp1842 const VkSampleCountFlagBits colorCount, in getSampleCountGroupName() argument
1847 << "_color_" << static_cast<deUint32>(colorCount) in getSampleCountGroupName()