Home
last modified time | relevance | path

Searched refs:colorData (Results 1 – 20 of 20) sorted by relevance

/third_party/flutter/skia/src/pdf/
DSkPDFGradientShader.cpp148 ColorTuple *colorData = colorDataAlloc.get(); in gradient_function_code() local
150 colorData[i][0] = SkColorGetR(info.fColors[i]); in gradient_function_code()
151 colorData[i][1] = SkColorGetG(info.fColors[i]); in gradient_function_code()
152 colorData[i][2] = SkColorGetB(info.fColors[i]); in gradient_function_code()
157 SkPDFUtils::AppendColorComponent(colorData[0][0], result); in gradient_function_code()
159 SkPDFUtils::AppendColorComponent(colorData[0][1], result); in gradient_function_code()
161 SkPDFUtils::AppendColorComponent(colorData[0][2], result); in gradient_function_code()
181 colorData[i], colorData[i - 1], result); in gradient_function_code()
187 SkPDFUtils::AppendColorComponent(colorData[info.fColorCount - 1][0], result); in gradient_function_code()
189 SkPDFUtils::AppendColorComponent(colorData[info.fColorCount - 1][1], result); in gradient_function_code()
[all …]
/third_party/skia/src/pdf/
DSkPDFGradientShader.cpp148 ColorTuple *colorData = colorDataAlloc.get(); in gradient_function_code() local
150 colorData[i][0] = SkColorGetR(info.fColors[i]); in gradient_function_code()
151 colorData[i][1] = SkColorGetG(info.fColors[i]); in gradient_function_code()
152 colorData[i][2] = SkColorGetB(info.fColors[i]); in gradient_function_code()
157 SkPDFUtils::AppendColorComponent(colorData[0][0], result); in gradient_function_code()
159 SkPDFUtils::AppendColorComponent(colorData[0][1], result); in gradient_function_code()
161 SkPDFUtils::AppendColorComponent(colorData[0][2], result); in gradient_function_code()
181 colorData[i], colorData[i - 1], result); in gradient_function_code()
187 SkPDFUtils::AppendColorComponent(colorData[info.fColorCount - 1][0], result); in gradient_function_code()
189 SkPDFUtils::AppendColorComponent(colorData[info.fColorCount - 1][1], result); in gradient_function_code()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DDynamicPromotionPerfTest.cpp92 std::vector<Vector3> colorData; in initializeBenchmark() local
106 colorData.push_back(color); in initializeBenchmark()
123 glBufferSubData(GL_ARRAY_BUFFER, positionArraySize, colorArraySize, colorData.data()); in initializeBenchmark()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/
DDynamicPromotionPerfTest.cpp92 std::vector<Vector3> colorData; in initializeBenchmark() local
106 colorData.push_back(color); in initializeBenchmark()
123 glBufferSubData(GL_ARRAY_BUFFER, positionArraySize, colorArraySize, colorData.data()); in initializeBenchmark()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DD3D12ResourceWrappingTests.cpp446 const uint8_t* colorData = static_cast<uint8_t*>(mappedResource.pData); in ExpectPixelRGBA8EQ() local
447 EXPECT_EQ(colorData[0], color.r * 255u); in ExpectPixelRGBA8EQ()
448 EXPECT_EQ(colorData[1], color.g * 255u); in ExpectPixelRGBA8EQ()
449 EXPECT_EQ(colorData[2], color.b * 255u); in ExpectPixelRGBA8EQ()
450 EXPECT_EQ(colorData[3], color.a * 255u); in ExpectPixelRGBA8EQ()
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
Des31cComputeShaderTests.cpp1203 std::vector<GLubyte> colorData(kWidth * kHeight * 4); in RunIteration() local
1204 glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, &colorData[0]); in RunIteration()
1210 vec4(static_cast<GLfloat>(colorData[i] / 255.), static_cast<GLfloat>(colorData[i + 1] / 255.), in RunIteration()
1211 static_cast<GLfloat>(colorData[i + 2] / 255.), static_cast<GLfloat>(colorData[i + 3] / 255.)); in RunIteration()
4154 std::vector<GLubyte> colorData(4 * 4 * 4); in Run() local
4155 glReadPixels(0, 0, 4, 4, GL_RGBA, GL_UNSIGNED_BYTE, &colorData[0]); in Run()
4159 vec4(static_cast<GLfloat>(colorData[i] / 255.), static_cast<GLfloat>(colorData[i + 1] / 255.), in Run()
4160 … static_cast<GLfloat>(colorData[i + 2] / 255.), static_cast<GLfloat>(colorData[i + 3] / 255.)); in Run()
4329 std::vector<GLubyte> colorData(128 * 128 * 4); in Run() local
4330 glReadPixels(0, 0, 128, 128, GL_RGBA, GL_UNSIGNED_BYTE, &colorData[0]); in Run()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DStateChangeTest.cpp857 std::vector<GLColor> colorData(6, GLColor::green); in TEST_P() local
858 glBufferData(GL_ARRAY_BUFFER, colorData.size() * sizeof(GLColor), colorData.data(), in TEST_P()
867 std::fill(colorData.begin(), colorData.end(), GLColor::red); in TEST_P()
868 glBufferSubData(GL_ARRAY_BUFFER, 0, colorData.size() * sizeof(GLColor), colorData.data()); in TEST_P()
1786 const GLfloat colorData[] = {0.515f, 0.515f, 0.515f, 1.0f}; in TEST_P() local
1787 constexpr size_t colorBufferSize = colorOffset + sizeof(colorData); in TEST_P()
1789 memcpy(reinterpret_cast<void *>(colorDataUnaligned + colorOffset), colorData, in TEST_P()
1790 sizeof(colorData)); in TEST_P()
1849 std::vector<GLColor> colorData(6, GLColor::red); in TEST_P() local
1853 glBufferData(GL_ARRAY_BUFFER, sizeof(GLColor) * colorData.size(), colorData.data(), in TEST_P()
DRobustResourceInitTest.cpp953 GLColor colorData[8] = { in TEST_P() local
958 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 2, 2, GL_RGBA, GL_UNSIGNED_BYTE, colorData); in TEST_P()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/rasterization/
DvktRasterizationTests.cpp193 …nst std::vector<tcu::Vec4>& positionData, const std::vector<tcu::Vec4>& colorData, VkPrimitiveTopo…
662 const std::vector<tcu::Vec4> colorData(vertexData.size(), tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); in drawPrimitives() local
664 drawPrimitives(result, vertexData, colorData, primitiveTopology); in drawPrimitives()
667 …nst std::vector<tcu::Vec4>& positionData, const std::vector<tcu::Vec4>& colorData, VkPrimitiveTopo… in drawPrimitives() argument
669 …drawPrimitives(result, positionData, colorData, primitiveTopology, *m_image, *m_resolvedImage, *m_… in drawPrimitives()
671 …nst std::vector<tcu::Vec4>& positionData, const std::vector<tcu::Vec4>& colorData, VkPrimitiveTopo… in drawPrimitives() argument
813 …cast<deUint8*>(vertexBufferMemory->getHostPtr()) + attributeBatchSize, colorData.data(), attribut… in drawPrimitives()
1476 const std::vector<tcu::Vec4> colorData(drawBuffer.size(), tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); in compareAndVerify() local
1485 …drawPrimitives(additionalResultImage, drawBuffer, colorData, m_primitiveTopology, *m_additionalIma… in compareAndVerify()
1874 const tcu::Vec4 colorData (point.color); in drawPoint() local
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/
DvktProtectedMemYCbCrConversionTests.cpp1252 YCbCrValidationData colorData; in conversionTest() local
1253 colorData.coord = posCoords[ndx].toWidth<4>(); in conversionTest()
1254 colorData.minBound = tcu::Vec4(0.0f, 0.9f, 0.0f, 1.0f); in conversionTest()
1255 colorData.maxBound = tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f); in conversionTest()
1257 colorReferenceData.push_back(colorData); in conversionTest()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DStateChangeTest.cpp953 std::vector<GLColor> colorData(6, GLColor::green); in TEST_P() local
954 glBufferData(GL_ARRAY_BUFFER, colorData.size() * sizeof(GLColor), colorData.data(), in TEST_P()
963 std::fill(colorData.begin(), colorData.end(), GLColor::red); in TEST_P()
964 glBufferSubData(GL_ARRAY_BUFFER, 0, colorData.size() * sizeof(GLColor), colorData.data()); in TEST_P()
2110 const GLfloat colorData[] = {0.515f, 0.515f, 0.515f, 1.0f}; in TEST_P() local
2111 constexpr size_t colorBufferSize = colorOffset + sizeof(colorData); in TEST_P()
2113 memcpy(reinterpret_cast<void *>(colorDataUnaligned + colorOffset), colorData, in TEST_P()
2114 sizeof(colorData)); in TEST_P()
2173 std::vector<GLColor> colorData(6, GLColor::red); in TEST_P() local
2177 glBufferData(GL_ARRAY_BUFFER, sizeof(GLColor) * colorData.size(), colorData.data(), in TEST_P()
DRobustResourceInitTest.cpp1088 GLColor colorData[8] = { in TEST_P() local
1093 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 2, 2, GL_RGBA, GL_UNSIGNED_BYTE, colorData); in TEST_P()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fRasterizationTests.cpp188 const std::vector<tcu::Vec4> colorData(vertexData.size(), tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); in drawPrimitives() local
190 drawPrimitives(result, vertexData, colorData, primitiveType); in drawPrimitives()
193 …const std::vector<tcu::Vec4>& vertexData, const std::vector<tcu::Vec4>& colorData, glw::GLenum pri… in drawPrimitives() argument
207 gl.vertexAttribPointer (colorLoc, 4, GL_FLOAT, GL_FALSE, 0, &colorData[0]); in drawPrimitives()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fRasterizationTests.cpp354 const std::vector<tcu::Vec4> colorData(vertexData.size(), tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); in drawPrimitives() local
356 drawPrimitives(result, vertexData, colorData, primitiveType); in drawPrimitives()
359 …const std::vector<tcu::Vec4>& vertexData, const std::vector<tcu::Vec4>& colorData, glw::GLenum pri… in drawPrimitives() argument
373 gl.vertexAttribPointer (colorLoc, 4, GL_FLOAT, GL_FALSE, 0, &colorData[0]); in drawPrimitives()
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/
DGLU_EXT_nurbs_tessellator.txt116 void colorData(GLfloat *color, void* userData);
/third_party/openGLES/extensions/EXT/
DGLU_EXT_nurbs_tessellator.txt116 void colorData(GLfloat *color, void* userData);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelinePushConstantTests.cpp827 std::vector<float> colorData; in generateColorData() local
833 colorData.push_back(deRandom_getFloat(&random)); in generateColorData()
835 return colorData; in generateColorData()
/third_party/skia/third_party/externals/dawn/src/tests/
DDawnTest.cpp1402 std::vector<uint32_t> colorData(width * height, 1u); in ExpectAttachmentDepthStencilTestData() local
1403 return EXPECT_TEXTURE_EQ(colorData.data(), colorTexture, {0, 0}, {width, height}); in ExpectAttachmentDepthStencilTestData()
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cComputeShaderTests.cpp4384 std::vector<GLubyte> colorData(4 * 4 * 4); in Run() local
4385 glReadPixels(0, 0, 4, 4, GL_RGBA, GL_UNSIGNED_BYTE, &colorData[0]); in Run()
4389 vec4(static_cast<GLfloat>(colorData[i] / 255.), static_cast<GLfloat>(colorData[i + 1] / 255.), in Run()
4390 … static_cast<GLfloat>(colorData[i + 2] / 255.), static_cast<GLfloat>(colorData[i + 3] / 255.)); in Run()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiCommandBuffersTests.cpp1739 deUint8* colorData = reinterpret_cast<deUint8*>(pixelBufferAccess.getDataPtr()); in renderPassContinueTest() local
1741 if (colorData[i * 4 + colorComponent] != clearColor[colorComponent]) in renderPassContinueTest()