Home
last modified time | relevance | path

Searched refs:kTexSize (Results 1 – 9 of 9) sorted by relevance

/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DCopyTexImageTest.cpp645 constexpr GLsizei kTexSize = 4; variable
654 std::vector<GLColor> red(kTexSize * kTexSize * kLayers, GLColor::red);
655 glTexImage3D(GL_TEXTURE_2D_ARRAY, 0, GL_RGBA8, kTexSize, kTexSize, kLayers, 0, GL_RGBA,
657 glCopyTexSubImage3D(GL_TEXTURE_2D_ARRAY, 0, 0, 0, kLayerOffset, 0, 0, kTexSize, kTexSize);
666 for (int x = 0; x < kTexSize; x++)
668 for (int y = 0; y < kTexSize; y++)
684 constexpr GLsizei kTexSize = 4; in TEST_P() local
686 std::vector<GLColor> red(kTexSize * kTexSize * kLayers, GLColor::red); in TEST_P()
697 glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA8, kTexSize, kTexSize, kLayers, 0, GL_RGBA, in TEST_P()
699 glTexSubImage3D(GL_TEXTURE_3D, 0, 0, 0, 1, kTexSize, kTexSize, 1, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
[all …]
DWebGLCompatibilityTest.cpp5522 constexpr GLsizei kTexSize = 2; in TEST_P() local
5525 std::vector<GLColor> texData(kTexSize * kTexSize, GLColor::green); in TEST_P()
5531 glTexStorage2D(GL_TEXTURE_2D, kTexLevels, GL_RGBA8, kTexSize, kTexSize); in TEST_P()
5532 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kTexSize, kTexSize, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
5539 glViewport(0, 0, kTexSize / 2, kTexSize / 2); in TEST_P()
/third_party/flutter/skia/gm/
Dlightingshader2.cpp47 LightingShader2GM() : fRect(SkRect::MakeIWH(kTexSize, kTexSize)) { in LightingShader2GM()
93 SkRect bitmapBounds = SkRect::MakeIWH(kTexSize, kTexSize); in onOnceBeforeDraw()
97 kTexSize, kTexSize, SK_ColorBLACK, 0xFF808080, 8); in onOnceBeforeDraw()
101 ToolUtils::create_checkerboard_bitmap(kTexSize, in onOnceBeforeDraw()
102 kTexSize, in onOnceBeforeDraw()
108 SkBitmap normalMap = make_frustum_normalmap(kTexSize); in onOnceBeforeDraw()
115 canvas->translate(kTexSize/2.0f, kTexSize/2.0f); in positionCTM()
118 canvas->translate(-kTexSize/2.0f, -kTexSize/2.0f); in positionCTM()
177 canvas->translate(0.0f, SkIntToScalar(kTexSize)); in onDraw()
266 static constexpr int kTexSize = 96; member in skiagm::LightingShader2GM
[all …]
Dlightingshader.cpp95 kTexSize, kTexSize, 0x00000000, ToolUtils::color_to_565(0xFF804020), 8); in onOnceBeforeDraw()
97 fNormalMaps[kHemi_NormalMap] = make_hemi_normalmap(kTexSize); in onOnceBeforeDraw()
98 fNormalMaps[kFrustum_NormalMap] = make_frustum_normalmap(kTexSize); in onOnceBeforeDraw()
99 fNormalMaps[kTetra_NormalMap] = make_tetra_normalmap(kTexSize); in onOnceBeforeDraw()
139 r = SkRect::MakeWH(SkIntToScalar(kTexSize), SkIntToScalar(kTexSize)); in onDraw()
142 r.offset(kGMSize - kTexSize, 0); in onDraw()
145 r.offset(0, kGMSize - kTexSize); in onDraw()
148 r.offset(kTexSize - kGMSize, 0); in onDraw()
153 static constexpr int kTexSize = 128; member in skiagm::LightingShaderGM
155 static constexpr SkScalar kScale = kGMSize/2.0f - kTexSize/2.0f;
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
DEGLContextSharingTest.cpp360 constexpr GLsizei kTexSize = 2; in TEST_P() local
361 const GLColor kTexData[kTexSize * kTexSize] = {GLColor::red, GLColor::green, GLColor::blue, in TEST_P()
365 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTexSize, kTexSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
422 constexpr GLsizei kTexSize = 2; in TEST_P() local
423 const GLColor kTexData[kTexSize * kTexSize] = {GLColor::red, GLColor::green, GLColor::blue, in TEST_P()
427 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTexSize, kTexSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
496 constexpr GLsizei kTexSize = 1; in TEST_P() local
501 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTexSize, kTexSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
623 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTexSize, kTexSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
DEGLContextASANTest.cpp151 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()
/third_party/flutter/skia/tests/
DSerializationTest.cpp596 const int kTexSize = 2; in DEF_TEST() local
607 kTexSize, kTexSize, 0x00000000, ToolUtils::color_to_565(0xFF804020), 8); in DEF_TEST()
612 SkRect r = SkRect::MakeWH(SkIntToScalar(kTexSize), SkIntToScalar(kTexSize)); in DEF_TEST()
618 normals.allocN32Pixels(kTexSize, kTexSize); in DEF_TEST()
620 ToolUtils::create_frustum_normal_map(&normals, SkIRect::MakeWH(kTexSize, kTexSize)); in DEF_TEST()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DCopyTexImageTest.cpp560 constexpr GLsizei kTexSize = 4; variable
569 std::vector<GLColor> red(kTexSize * kTexSize * kLayers, GLColor::red);
570 glTexImage3D(GL_TEXTURE_2D_ARRAY, 0, GL_RGBA8, kTexSize, kTexSize, kLayers, 0, GL_RGBA,
572 glCopyTexSubImage3D(GL_TEXTURE_2D_ARRAY, 0, 0, 0, kLayerOffset, 0, 0, kTexSize, kTexSize);
/third_party/skia/tests/
DResourceCacheTest.cpp1767 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()