/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fShaderBuiltinVarTests.cpp | 288 tcu::Surface refImg (width, height); in iterate() local 333 for (int y = 0; y < refImg.getHeight(); y++) in iterate() 335 for (int x = 0; x < refImg.getWidth(); x++) in iterate() 337 const float xf = (float(x)+.5f) / float(refImg.getWidth()); in iterate() 338 const float yf = (float(refImg.getHeight()-y-1)+.5f) / float(refImg.getHeight()); in iterate() 344 refImg.setPixel(x, y, tcu::RGBA(color)); in iterate() 350 …bool isOk = tcu::pixelThresholdCompare(log, "Result", "Image comparison result", refImg, testImg, … in iterate() 381 tcu::Surface refImg (width, height); in iterate() local 425 for (int y = 0; y < refImg.getHeight(); y++) in iterate() 427 for (int x = 0; x < refImg.getWidth(); x++) in iterate() [all …]
|
/third_party/vk-gl-cts/modules/internal/ |
D | ditImageCompareTests.cpp | 55 …FuzzyComparisonMetricCase (tcu::TestContext& testCtx, const char* name, const char* refImg, const … in FuzzyComparisonMetricCase() argument 57 , m_refImg (refImg) in FuzzyComparisonMetricCase() 66 tcu::TextureLevel refImg; in iterate() local 75 …tcu::ImageIO::loadImage(refImg, m_testCtx.getArchive(), de::FilePath::join(BASE_DIR, m_refImg).get… in iterate() 78 …errorMask.setStorage(refImg.getFormat(), refImg.getWidth(), refImg.getHeight(), refImg.getDepth()); in iterate() 82 result = tcu::fuzzyCompare(params, refImg, cmpImg, errorMask); in iterate() 86 m_testCtx.getLog() << TestLog::Image("RefImage", "Reference Image", refImg) in iterate() 114 …BilinearCompareCase (tcu::TestContext& testCtx, const char* name, const char* refImg, const char* … in BilinearCompareCase() argument 116 , m_refImg (refImg) in BilinearCompareCase() 125 tcu::TextureLevel refImg; in iterate() local [all …]
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fShaderBuiltinVarTests.cpp | 303 tcu::Surface refImg (width, height); in iterate() local 351 for (int y = 0; y < refImg.getHeight(); y++) in iterate() 353 for (int x = 0; x < refImg.getWidth(); x++) in iterate() 355 const float xf = (float(x)+.5f) / float(refImg.getWidth()); in iterate() 356 const float yf = (float(refImg.getHeight()-y-1)+.5f) / float(refImg.getHeight()); in iterate() 362 refImg.setPixel(x, y, tcu::RGBA(color)); in iterate() 368 …bool isOk = tcu::pixelThresholdCompare(log, "Result", "Image comparison result", refImg, testImg, … in iterate() 399 tcu::Surface refImg (width, height); in iterate() local 446 for (int y = 0; y < refImg.getHeight(); y++) in iterate() 448 for (int x = 0; x < refImg.getWidth(); x++) in iterate() [all …]
|
D | es3fShaderMetamorphicTests.cpp | 77 …void checkNondet (const tcu::Surface& refImg, const std::string& vertexSrc, const std::string&… 159 void ShaderMetamorphicVariant::checkNondet (const tcu::Surface& refImg, const std::string& vertexSr… in checkNondet() argument 162 tcu::Surface img = tcu::Surface(refImg.getWidth(), refImg.getHeight()); in checkNondet() 165 …bool same = tcu::pixelThresholdCompare(log, "Result", "Image comparison result", img, refImg, tcu:… in checkNondet()
|
/third_party/skia/tests/ |
D | PromiseImageTest.cpp | 144 sk_sp<SkImage> refImg(SkImage_Gpu::MakePromiseTexture(ctx->threadSafeProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 160 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 170 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 171 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 178 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 182 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 183 refImg.reset(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 374 sk_sp<SkImage> refImg(SkImage_Gpu::MakePromiseTexture(dContext->threadSafeProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 390 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 393 canvas->drawImage(refImg, 0, 0, SkSamplingOptions(), &paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | ImageTest.cpp | 856 sk_sp<SkImage> refImg = SkImage::MakeFromTexture( in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 867 GrBackendTexture readBackBackendTex = refImg->getBackendTexture(false, &readBackOrigin); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 880 refImg.reset(nullptr); // force a release of the image in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 913 sk_sp<SkImage> refImg(imageMaker(dContext)); in test_cross_context_image() local 914 refImg.reset(nullptr); // force a release of the image in test_cross_context_image() 928 sk_sp<SkImage> refImg(imageMaker(dContext)); in test_cross_context_image() local 930 canvas->drawImage(refImg, 0, 0); in test_cross_context_image() 933 refImg.reset(nullptr); // force a release of the image in test_cross_context_image() 938 sk_sp<SkImage> refImg(imageMaker(dContext)); in test_cross_context_image() local 940 canvas->drawImage(refImg, 0, 0); in test_cross_context_image() [all …]
|
/third_party/flutter/skia/tests/ |
D | PromiseImageTest.cpp | 180 sk_sp<SkImage> refImg( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 196 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 206 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 207 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 215 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 219 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 220 refImg.reset(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 494 sk_sp<SkImage> refImg(SkImage_Gpu::MakePromiseTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 503 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 506 canvas->drawImage(refImg, 0, 0, &paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | ImageTest.cpp | 831 sk_sp<SkImage> refImg( in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 837 GrBackendTexture readBackBackendTex = refImg->getBackendTexture(false, &readBackOrigin); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 849 refImg.reset(nullptr); // force a release of the image in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 884 sk_sp<SkImage> refImg(imageMaker(ctx)); in test_cross_context_image() local 885 refImg.reset(nullptr); // force a release of the image in test_cross_context_image() 899 sk_sp<SkImage> refImg(imageMaker(ctx)); in test_cross_context_image() local 901 canvas->drawImage(refImg, 0, 0); in test_cross_context_image() 904 refImg.reset(nullptr); // force a release of the image in test_cross_context_image() 909 sk_sp<SkImage> refImg(imageMaker(ctx)); in test_cross_context_image() local 911 canvas->drawImage(refImg, 0, 0); in test_cross_context_image() [all …]
|
/third_party/vk-gl-cts/modules/egl/ |
D | teglImageFormatTests.cpp | 121 …virtual bool invoke (ImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& refImg) const…
|