/external/angle/src/tests/gl_tests/ |
D | CopyTexImageTest.cpp | 648 constexpr GLsizei kTexSize = 4; variable 657 std::vector<GLColor> red(kTexSize * kTexSize * kLayers, GLColor::red); 658 glTexImage3D(GL_TEXTURE_2D_ARRAY, 0, GL_RGBA8, kTexSize, kTexSize, kLayers, 0, GL_RGBA, 660 glCopyTexSubImage3D(GL_TEXTURE_2D_ARRAY, 0, 0, 0, kLayerOffset, 0, 0, kTexSize, kTexSize); 669 for (int x = 0; x < kTexSize; x++) 671 for (int y = 0; y < kTexSize; y++) 687 constexpr GLsizei kTexSize = 4; in TEST_P() local 689 std::vector<GLColor> red(kTexSize * kTexSize * kLayers, GLColor::red); in TEST_P() 700 glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA8, kTexSize, kTexSize, kLayers, 0, GL_RGBA, in TEST_P() 702 glTexSubImage3D(GL_TEXTURE_3D, 0, 0, 0, 1, kTexSize, kTexSize, 1, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() [all …]
|
D | WebGLCompatibilityTest.cpp | 5247 constexpr GLsizei kTexSize = 2; in TEST_P() local 5250 std::vector<GLColor> texData(kTexSize * kTexSize, GLColor::green); in TEST_P() 5256 glTexStorage2D(GL_TEXTURE_2D, kTexLevels, GL_RGBA8, kTexSize, kTexSize); in TEST_P() 5257 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kTexSize, kTexSize, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 5264 glViewport(0, 0, kTexSize / 2, kTexSize / 2); in TEST_P()
|
/external/skqp/gm/ |
D | lightingshader.cpp | 82 kTexSize, kTexSize, in onOnceBeforeDraw() 87 fNormalMaps[kHemi_NormalMap] = make_hemi_normalmap(kTexSize); in onOnceBeforeDraw() 88 fNormalMaps[kFrustum_NormalMap] = make_frustum_normalmap(kTexSize); in onOnceBeforeDraw() 89 fNormalMaps[kTetra_NormalMap] = make_tetra_normalmap(kTexSize); in onOnceBeforeDraw() 131 r = SkRect::MakeWH(SkIntToScalar(kTexSize), SkIntToScalar(kTexSize)); in onDraw() 134 r.offset(kGMSize - kTexSize, 0); in onDraw() 137 r.offset(0, kGMSize - kTexSize); in onDraw() 140 r.offset(kTexSize - kGMSize, 0); in onDraw() 145 static constexpr int kTexSize = 128; member in skiagm::LightingShaderGM 147 static constexpr SkScalar kScale = kGMSize/2.0f - kTexSize/2.0f;
|
D | lightingshader2.cpp | 31 LightingShader2GM() : fRect(SkRect::MakeIWH(kTexSize, kTexSize)) { in LightingShader2GM() 77 SkRect bitmapBounds = SkRect::MakeIWH(kTexSize, kTexSize); in onOnceBeforeDraw() 81 kTexSize, kTexSize, SK_ColorBLACK, in onOnceBeforeDraw() 88 kTexSize, kTexSize, in onOnceBeforeDraw() 96 SkBitmap normalMap = make_frustum_normalmap(kTexSize); in onOnceBeforeDraw() 104 canvas->translate(kTexSize/2.0f, kTexSize/2.0f); in positionCTM() 107 canvas->translate(-kTexSize/2.0f, -kTexSize/2.0f); in positionCTM() 167 canvas->translate(0.0f, SkIntToScalar(kTexSize)); in onDraw() 256 static constexpr int kTexSize = 96; member in skiagm::LightingShader2GM 260 static constexpr SkScalar kGridCellWidth = kTexSize + 20.0f + kNumBooleanParams * kLabelSize;
|
/external/angle/src/tests/egl_tests/ |
D | EGLContextSharingTest.cpp | 258 constexpr GLsizei kTexSize = 2; in TEST_P() local 259 const GLColor kTexData[kTexSize * kTexSize] = {GLColor::red, GLColor::green, GLColor::blue, in TEST_P() 263 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTexSize, kTexSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 320 constexpr GLsizei kTexSize = 2; in TEST_P() local 321 const GLColor kTexData[kTexSize * kTexSize] = {GLColor::red, GLColor::green, GLColor::blue, in TEST_P() 325 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTexSize, kTexSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 394 constexpr GLsizei kTexSize = 1; in TEST_P() local 399 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTexSize, kTexSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 521 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTexSize, kTexSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
|
D | EGLContextASANTest.cpp | 151 constexpr GLsizei kTexSize = 1; in TEST_P() local 156 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTexSize, kTexSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
|
/external/skqp/tests/ |
D | SerializationTest.cpp | 581 const int kTexSize = 2; in DEF_TEST() local 592 kTexSize, kTexSize, in DEF_TEST() 600 SkRect r = SkRect::MakeWH(SkIntToScalar(kTexSize), SkIntToScalar(kTexSize)); in DEF_TEST() 606 normals.allocN32Pixels(kTexSize, kTexSize); in DEF_TEST() 608 sk_tool_utils::create_frustum_normal_map(&normals, SkIRect::MakeWH(kTexSize, kTexSize)); in DEF_TEST()
|
/external/skia/tests/ |
D | ResourceCacheTest.cpp | 1767 constexpr size_t kTexSize = 16 * 16 * 4; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 1770 dContext->setResourceCacheLimit(2 * kTexSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1781 REPORTER_ASSERT(reporter, lockedTex->gpuMemorySize() == kTexSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1789 size_t expectedPurgeable = success ? kTexSize : 0; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1792 REPORTER_ASSERT(reporter, success == resourceCache->purgeToMakeHeadroom(kTexSize)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1793 size_t expectedBudgeted = success ? kTexSize : (2 * kTexSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|