/third_party/flutter/skia/tests/ |
D | TransferPixelsTest.cpp | 113 const int kTextureWidth = 16; in basic_transfer_to_test() local 119 desc.fWidth = kTextureWidth; in basic_transfer_to_test() 152 fill_transfer_data(0, 0, kTextureWidth, kTextureHeight, srcBufferWidth, allowedSrc.fColorType, in basic_transfer_to_test() 174 result = gpu->transferPixelsTo(tex.get(), 0, 0, kTextureWidth, kTextureHeight, colorType, in basic_transfer_to_test() 178 size_t dstRowBytes = GrColorTypeBytesPerPixel(colorType) * kTextureWidth; in basic_transfer_to_test() 263 const int kTextureWidth = 16; in basic_transfer_from_test() local 275 desc.fWidth = kTextureWidth; in basic_transfer_from_test() 285 size_t textureDataRowBytes = kTextureWidth * textureDataBpp; in basic_transfer_from_test() 287 fill_transfer_data(0, 0, kTextureWidth, kTextureHeight, kTextureWidth, colorType, in basic_transfer_from_test() 312 GrPixelInfo readInfo(allowedRead.fColorType, kUnpremul_SkAlphaType, nullptr, kTextureWidth, in basic_transfer_from_test() [all …]
|
/third_party/skia/tests/graphite/ |
D | CommandBufferTest.cpp | 33 constexpr int kTextureWidth = 1024; in DEF_GRAPHITE_TEST_FOR_CONTEXTS() local 44 SkISize textureSize = { kTextureWidth, kTextureHeight }; in DEF_GRAPHITE_TEST_FOR_CONTEXTS() 178 size_t rowBytes = 4*kTextureWidth; in DEF_GRAPHITE_TEST_FOR_CONTEXTS() 183 SkIRect srcRect = { 0, 0, kTextureWidth, kTextureHeight }; in DEF_GRAPHITE_TEST_FOR_CONTEXTS() 192 REPORTER_ASSERT(reporter, pixels[51 + 38*kTextureWidth] == 0xff00ffff); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() 193 REPORTER_ASSERT(reporter, pixels[256 + 192*kTextureWidth] == 0xffff00ff); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/fragment_shading_rate/ |
D | esextcFragmentShadingRateErrors.cpp | 124 constexpr deUint32 kTextureWidth = 256; in iterate() local 148 gl.texStorage2D(GL_TEXTURE_2D, 1, GL_R8UI, kTextureWidth, kTextureHeight); in iterate() 153 …gl.texImage2D(GL_TEXTURE_2D, 0, GL_R8, kTextureWidth, kTextureHeight, 0, GL_RED, GL_UNSIGNED_BYTE,… in iterate()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | MipmapTest.cpp | 580 constexpr uint32_t kTextureWidth = 3840; in TEST_P() local 583 const std::vector<GLColor> kInitialColor(kTextureWidth * kTextureHeight, in TEST_P() 588 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTextureWidth, kTextureHeight, 0, GL_RGBA, in TEST_P() 599 verifyAllMips(kTextureWidth, kTextureHeight, kInitialColor[0]); in TEST_P() 613 const uint32_t kTextureWidth = maxTextureWidth - 1; // -1 to make the width NPOT in TEST_P() local 615 const std::vector<GLColor> kInitialColor(kTextureWidth * kTextureHeight, in TEST_P() 620 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTextureWidth, kTextureHeight, 0, GL_RGBA, in TEST_P() 631 verifyAllMips(kTextureWidth, kTextureHeight, kInitialColor[0]); in TEST_P()
|
D | ComputeShaderTest.cpp | 945 constexpr int kTextureWidth = 1, kTextureHeight = 2; in TEST_P() local 949 glTexStorage2D(GL_TEXTURE_2D, 1, GL_R32UI, kTextureWidth, kTextureHeight); in TEST_P() 950 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kTextureWidth, kTextureHeight, GL_RED_INTEGER, in TEST_P() 963 GLuint outputValues[kTextureWidth * kTextureHeight]; in TEST_P() 964 glReadPixels(0, 0, kTextureWidth, kTextureHeight, GL_RED_INTEGER, GL_UNSIGNED_INT, in TEST_P() 969 for (int i = 0; i < kTextureWidth * kTextureHeight; i++) in TEST_P() 1005 constexpr int kTextureWidth = 1, kTextureHeight = 2; in TEST_P() local 1009 glTexStorage2D(GL_TEXTURE_2D, 1, GL_R32UI, kTextureWidth, kTextureHeight); in TEST_P() 1010 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kTextureWidth, kTextureHeight, GL_RED_INTEGER, in TEST_P() 1018 glTexStorage2D(GL_TEXTURE_2D, 1, GL_R32UI, kTextureWidth, kTextureHeight); in TEST_P() [all …]
|
D | RobustResourceInitTest.cpp | 701 constexpr GLint kTextureWidth = 2; in TEST_P() local 704 constexpr size_t kTextureDataSize = kTextureWidth * kTextureHeight * 4; in TEST_P() 711 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTextureWidth, kTextureHeight, 0, GL_RGBA, in TEST_P() 721 glTexStorage3D(GL_TEXTURE_3D, 1, GL_RGBA8, kTextureWidth, kTextureHeight, kTextureDepth); in TEST_P() 722 glCopyTexSubImage3D(GL_TEXTURE_3D, 0, 0, 0, kTextureLayer, 0, 0, kTextureWidth, kTextureHeight); in TEST_P() 726 glReadPixels(0, 0, kTextureWidth, kTextureHeight, GL_RGBA, GL_UNSIGNED_BYTE, pixels.data()); in TEST_P() 947 constexpr int kTextureWidth = 127; in TEST_P() local 953 glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, x, y, kTextureWidth, kTextureHeight, 0); in TEST_P()
|
D | BufferDataTest.cpp | 1253 constexpr GLsizei kTextureWidth = 4; in TEST_P() local 1255 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, kTextureWidth, kTextureHeight, 0, GL_RGBA, in TEST_P()
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | RobustResourceInitTest.cpp | 612 constexpr GLint kTextureWidth = 2; in TEST_P() local 615 constexpr size_t kTextureDataSize = kTextureWidth * kTextureHeight * 4; in TEST_P() 622 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTextureWidth, kTextureHeight, 0, GL_RGBA, in TEST_P() 632 glTexStorage3D(GL_TEXTURE_3D, 1, GL_RGBA8, kTextureWidth, kTextureHeight, kTextureDepth); in TEST_P() 633 glCopyTexSubImage3D(GL_TEXTURE_3D, 0, 0, 0, kTextureLayer, 0, 0, kTextureWidth, kTextureHeight); in TEST_P() 637 glReadPixels(0, 0, kTextureWidth, kTextureHeight, GL_RGBA, GL_UNSIGNED_BYTE, pixels.data()); in TEST_P() 816 constexpr int kTextureWidth = 127; in TEST_P() local 822 glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, x, y, kTextureWidth, kTextureHeight, 0); in TEST_P()
|
D | ComputeShaderTest.cpp | 743 constexpr int kTextureWidth = 1, kTextureHeight = 2; in TEST_P() local 747 glTexStorage2D(GL_TEXTURE_2D, 1, GL_R32UI, kTextureWidth, kTextureHeight); in TEST_P() 748 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kTextureWidth, kTextureHeight, GL_RED_INTEGER, in TEST_P() 761 GLuint outputValues[kTextureWidth * kTextureHeight]; in TEST_P() 762 glReadPixels(0, 0, kTextureWidth, kTextureHeight, GL_RED_INTEGER, GL_UNSIGNED_INT, in TEST_P() 767 for (int i = 0; i < kTextureWidth * kTextureHeight; i++) in TEST_P()
|
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/ |
D | EGLSurfaceTest.cpp | 1062 constexpr UINT kTextureWidth = 100; in TEST_P() local 1065 std::vector<Color<uint8_t>> textureData(kTextureWidth * kTextureHeight, kOpaqueBlack); in TEST_P() 1069 initialData.SysMemPitch = kTextureWidth * sizeof(kOpaqueBlack); in TEST_P() 1073 desc.Width = kTextureWidth; in TEST_P() 1089 kTextureWidth, in TEST_P()
|