Home
last modified time | relevance | path

Searched refs:surfaceType (Results 1 – 25 of 112) sorted by relevance

12345

/third_party/skia/fuzz/
DFuzzCreateDDL.cpp55 static SkImageInfo gen_fuzzed_imageinfo(Fuzz* fuzz, SkColorType surfaceType) { in gen_fuzzed_imageinfo() argument
120 return SkImageInfo::Make(width, height, surfaceType, alphaType, in gen_fuzzed_imageinfo()
125 SkImageInfo& ii, SkColorType surfaceType, in make_characterization() argument
127 if (!dContext->colorTypeSupportedAsSurface(surfaceType)) { in make_characterization()
133 GrBackendFormat backendFormat = dContext->defaultBackendFormat(surfaceType, in make_characterization()
189 SkColorType surfaceType, in create_surface_and_characterization() argument
191 SkImageInfo ii = gen_fuzzed_imageinfo(fuzz, surfaceType); in create_surface_and_characterization()
192 SkSurfaceCharacterization c = make_characterization(fuzz, dContext, ii, surfaceType, origin); in create_surface_and_characterization()
205 SkColorType surfaceType; in DEF_FUZZ() local
207 fuzz->nextEnum(&surfaceType, SkColorType::kLastEnum_SkColorType); in DEF_FUZZ()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/egl_tests/
DEGLContextCompatibilityTest.cpp259 EGLint surfaceType; in TEST_P() local
260 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType); in TEST_P()
263 if ((surfaceType & EGL_WINDOW_BIT) != 0) in TEST_P()
288 EGLint surfaceType; in TEST_P() local
289 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType); in TEST_P()
292 if ((surfaceType & EGL_PBUFFER_BIT) != 0) in TEST_P()
329 EGLint surfaceType; in TEST_P() local
330 eglGetConfigAttrib(mDisplay, config1, EGL_SURFACE_TYPE, &surfaceType); in TEST_P()
333 if ((surfaceType & EGL_WINDOW_BIT) == 0) in TEST_P()
372 EGLint surfaceType; in TEST_P() local
[all …]
DEGLChooseConfigTest.cpp51 EGLint colorBufferType, level, renderableType, surfaceType, transparentType; in TEST_P() local
63 eglGetConfigAttrib(display, config, EGL_SURFACE_TYPE, &surfaceType); in TEST_P()
64 ASSERT_EQ(surfaceType & EGL_WINDOW_BIT, EGL_WINDOW_BIT); in TEST_P()
80 EGLint colorBufferType, level, renderableType, surfaceType, transparentType; in TEST_P() local
86 eglGetConfigAttrib(display, config, EGL_SURFACE_TYPE, &surfaceType); in TEST_P()
96 ((surfaceType & EGL_WINDOW_BIT) == EGL_WINDOW_BIT) && (transparentType == EGL_NONE) && in TEST_P()
DEGLBackwardsCompatibleContextTest.cpp52 EGLint surfaceType; in testSetUp() local
53 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType); in testSetUp()
54 if (surfaceType & EGL_PBUFFER_BIT) in testSetUp()
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
DEGLChooseConfigTest.cpp52 EGLint colorBufferType, level, renderableType, surfaceType, transparentType; in TEST_P() local
64 eglGetConfigAttrib(display, config, EGL_SURFACE_TYPE, &surfaceType); in TEST_P()
65 ASSERT_EQ(surfaceType & EGL_WINDOW_BIT, EGL_WINDOW_BIT); in TEST_P()
81 EGLint colorBufferType, level, renderableType, surfaceType, transparentType; in TEST_P() local
87 eglGetConfigAttrib(display, config, EGL_SURFACE_TYPE, &surfaceType); in TEST_P()
97 ((surfaceType & EGL_WINDOW_BIT) == EGL_WINDOW_BIT) && (transparentType == EGL_NONE) && in TEST_P()
DEGLBackwardsCompatibleContextTest.cpp52 EGLint surfaceType; in testSetUp() local
53 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType); in testSetUp()
54 if (surfaceType & EGL_PBUFFER_BIT) in testSetUp()
66 EGLint surfaceType = EGL_NONE; in testSetUp() local
67 eglGetConfigAttrib(mDisplay, mConfig, EGL_SURFACE_TYPE, &surfaceType); in testSetUp()
68 if (surfaceType & EGL_PBUFFER_BIT) in testSetUp()
DEGLContextCompatibilityTest.cpp373 EGLint surfaceType; in TestBody() local
374 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType); in TestBody()
377 ANGLE_SKIP_TEST_IF((surfaceType & EGL_WINDOW_BIT) == 0); in TestBody()
398 EGLint surfaceType; in TestBody() local
399 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType); in TestBody()
402 ANGLE_SKIP_TEST_IF((surfaceType & EGL_PBUFFER_BIT) == 0); in TestBody()
428 EGLint surfaceType; in TestBody() local
429 eglGetConfigAttrib(mDisplay, config1, EGL_SURFACE_TYPE, &surfaceType); in TestBody()
432 ANGLE_SKIP_TEST_IF((surfaceType & EGL_WINDOW_BIT) == 0); in TestBody()
460 EGLint surfaceType; in TestBody() local
[all …]
DEGLNoConfigContextTest.cpp102 EGLint surfaceType; in TEST_P() local
103 EXPECT_EGL_TRUE(eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType)); in TEST_P()
108 (surfaceType & EGL_PBUFFER_BIT) != EGL_PBUFFER_BIT) in TEST_P()
DEGLQueryContextTest.cpp43 EGLint surfaceType = EGL_NONE; in testSetUp() local
44 eglGetConfigAttrib(mDisplay, mConfig, EGL_SURFACE_TYPE, &surfaceType); in testSetUp()
45 if (surfaceType & EGL_PBUFFER_BIT) in testSetUp()
DEGLRobustnessTest.cpp73 EGLint surfaceType; in testSetUp() local
74 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType); in testSetUp()
76 if ((surfaceType & EGL_WINDOW_BIT) != 0) in testSetUp()
/third_party/vk-gl-cts/framework/platform/ohos/context/
DtcuOhosNativeContext.cpp151 OHOS::RCI_SURFACE_TYPE surfaceType; in OhosRendContext() local
152 switch (config.surfaceType) in OhosRendContext()
155 surfaceType = OHOS::RCI_SURFACE_TYPE::NONE; in OhosRendContext()
158 surfaceType = OHOS::RCI_SURFACE_TYPE::PIXMAP; in OhosRendContext()
161 surfaceType = OHOS::RCI_SURFACE_TYPE::PBUFFER; in OhosRendContext()
164 surfaceType = OHOS::RCI_SURFACE_TYPE::WINDOW; in OhosRendContext()
196 …if (!OHOS::OhosContextI::GetInstance().SetConfig(w, h, ver, pf, surfaceType, profile, static_cast<… in OhosRendContext()
/third_party/vk-gl-cts/framework/opengl/
DgluRenderConfig.cpp147 …case tcu::SURFACETYPE_WINDOW: config->surfaceType = RenderConfig::SURFACETYPE_WINDOW; break; in parseRenderConfig()
148 …case tcu::SURFACETYPE_OFFSCREEN_NATIVE: config->surfaceType = RenderConfig::SURFACETYPE_OFFSCREE… in parseRenderConfig()
149 …case tcu::SURFACETYPE_OFFSCREEN_GENERIC: config->surfaceType = RenderConfig::SURFACETYPE_OFFSCREE… in parseRenderConfig()
150 …case tcu::SURFACETYPE_FBO: config->surfaceType = RenderConfig::SURFACETYPE_DONT_CARE; break; in parseRenderConfig()
151 …case tcu::SURFACETYPE_LAST: config->surfaceType = RenderConfig::SURFACETYPE_DONT_CARE; brea… in parseRenderConfig()
/third_party/vk-gl-cts/modules/egl/
DteglThreadCleanUpTests.cpp55 return (c.surfaceType() & EGL_PBUFFER_BIT) == EGL_PBUFFER_BIT; in isPBuffer()
151 static std::string testCaseName (ContextType contextType, SurfaceType surfaceType) in testCaseName() argument
160 if (surfaceType ==SURFACETYPE_SINGLE) in testCaseName()
169 ThreadCleanUpTest (EglTestContext& eglTestCtx, ContextType contextType, SurfaceType surfaceType) in ThreadCleanUpTest() argument
170 …: TestCase (eglTestCtx, testCaseName(contextType, surfaceType).c_str(), "Simple thread context c… in ThreadCleanUpTest()
172 , m_surfaceType (surfaceType) in ThreadCleanUpTest()
DteglCreateSurfaceTests.cpp345 static bool surfaceType (const eglu::CandidateConfig& c) in surfaceType() function
347 return (c.surfaceType() & Type) == Type; in surfaceType()
358 baseFilters << surfaceType<EGL_WINDOW_BIT>; in init()
373 baseFilters << surfaceType<EGL_PIXMAP_BIT>; in init()
388 baseFilters << surfaceType<EGL_PBUFFER_BIT>; in init()
403 baseFilters << surfaceType<EGL_WINDOW_BIT>; in init()
418 baseFilters << surfaceType<EGL_PIXMAP_BIT>; in init()
433 baseFilters << surfaceType<EGL_WINDOW_BIT>; in init()
448 baseFilters << surfaceType<EGL_PIXMAP_BIT>; in init()
DteglQuerySurfaceTests.cpp192 …if (multisampleResolve == EGL_MULTISAMPLE_RESOLVE_BOX && !(info.surfaceType & EGL_MULTISAMPLE_RESO… in checkCommonAttributes()
209 if (swapBehavior == EGL_BUFFER_PRESERVED && !(info.surfaceType & EGL_SWAP_BEHAVIOR_PRESERVED_BIT)) in checkCommonAttributes()
226 if (alphaFormat == EGL_ALPHA_FORMAT_PRE && !(info.surfaceType & EGL_VG_ALPHA_FORMAT_PRE_BIT)) in checkCommonAttributes()
243 if (colorspace == EGL_VG_COLORSPACE_LINEAR && !(info.surfaceType & EGL_VG_COLORSPACE_LINEAR_BIT)) in checkCommonAttributes()
459 …void testAttributes (EGLDisplay display, EGLSurface surface, EGLint surfaceType, const ConfigInfo…
467 void SurfaceAttribCase::testAttributes (EGLDisplay display, EGLSurface surface, EGLint surfaceType,… in testAttributes() argument
489 if (surfaceType == EGL_PBUFFER_BIT) in testAttributes()
682 static bool surfaceType (const eglu::CandidateConfig& c) in surfaceType() function
684 return (c.surfaceType() & Type) == Type; in surfaceType()
700 baseFilters << surfaceType<EGL_WINDOW_BIT>; in init()
[all …]
DteglRenderCase.cpp297 …TestCtx, const char* name, const char* description, EGLint api, EGLint surfaceType, const eglu::Fi… in MultiContextRenderCase() argument
298 : RenderCase (eglTestCtx, name, description, surfaceType, filters) in MultiContextRenderCase()
395 static bool surfaceType (const eglu::CandidateConfig& c) in surfaceType() function
397 return (c.surfaceType() & Type) == Type; in surfaceType()
437 { "window", EGL_WINDOW_BIT, surfaceType<EGL_WINDOW_BIT> }, in getDefaultRenderFilterLists()
438 { "pixmap", EGL_PIXMAP_BIT, surfaceType<EGL_PIXMAP_BIT>, }, in getDefaultRenderFilterLists()
439 { "pbuffer", EGL_PBUFFER_BIT, surfaceType<EGL_PBUFFER_BIT> } in getDefaultRenderFilterLists()
DteglColorClearCase.hpp44 eglw::EGLint surfaceType,
62 eglw::EGLint surfaceType,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderDerivateTests.cpp534 surfaceType = SURFACETYPE_UNORM_FBO; in DerivateCaseDefinition()
546 SurfaceType surfaceType; member
630 …m_colorFormat = vk::mapTextureFormat(glu::mapGLInternalFormat(m_definitions.surfaceType == SURFACE… in TriangleDerivateCaseInstance()
641 switch (m_definitions.surfaceType) in getSurfaceThreshold()
715 if (m_definitions.surfaceType == SURFACETYPE_FLOAT_FBO) in iterate()
1091 SurfaceType surfaceType,
1111 SurfaceType surfaceType, in LinearDerivateCase() argument
1124 m_definitions.surfaceType = surfaceType; in LinearDerivateCase()
1146 const bool packToInt = m_definitions.surfaceType == SURFACETYPE_FLOAT_FBO; in initPrograms()
1195 if (m_definitions.surfaceType == SURFACETYPE_FLOAT_FBO) in initPrograms()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
DvktShaderRenderDerivateTests.cpp534 surfaceType = SURFACETYPE_UNORM_FBO; in DerivateCaseDefinition()
546 SurfaceType surfaceType; member
630 …m_colorFormat = vk::mapTextureFormat(glu::mapGLInternalFormat(m_definitions.surfaceType == SURFACE… in TriangleDerivateCaseInstance()
641 switch (m_definitions.surfaceType) in getSurfaceThreshold()
715 if (m_definitions.surfaceType == SURFACETYPE_FLOAT_FBO) in iterate()
1091 SurfaceType surfaceType,
1111 SurfaceType surfaceType, in LinearDerivateCase() argument
1124 m_definitions.surfaceType = surfaceType; in LinearDerivateCase()
1146 const bool packToInt = m_definitions.surfaceType == SURFACETYPE_FLOAT_FBO; in initPrograms()
1195 if (m_definitions.surfaceType == SURFACETYPE_FLOAT_FBO) in initPrograms()
[all …]
/third_party/vk-gl-cts/framework/egl/
DegluGLUtil.cpp218 if (renderConfig.surfaceType != glu::RenderConfig::SURFACETYPE_DONT_CARE) in configMatches()
220 EGLint surfaceType = 0; in configMatches() local
223 switch (renderConfig.surfaceType) in configMatches()
232 EGLU_CHECK_CALL(egl, getConfigAttrib(display, eglConfig, EGL_SURFACE_TYPE, &surfaceType)); in configMatches()
234 if ((surfaceType & requiredSurface) == 0) in configMatches()
DegluGLContextFactory.cpp312 glu::RenderConfig::SurfaceType surfaceType = config.surfaceType; in create() local
336 if (surfaceType == glu::RenderConfig::SURFACETYPE_DONT_CARE) in create()
342 surfaceType = glu::RenderConfig::SURFACETYPE_WINDOW; in create()
344 surfaceType = glu::RenderConfig::SURFACETYPE_OFFSCREEN_GENERIC; in create()
346 surfaceType = glu::RenderConfig::SURFACETYPE_OFFSCREEN_NATIVE; in create()
351 switch (surfaceType) in create()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DTracePerfTest.cpp1154 ASSERT(mParams.surfaceType == SurfaceType::Window || gEnableAllTraceTests); in TracePerfTest()
1231 if (mParams.surfaceType == SurfaceType::Offscreen) in initializeBenchmark()
1287 if (mParams.surfaceType == SurfaceType::Offscreen) in destroyBenchmark()
1349 if (mParams.surfaceType == SurfaceType::Offscreen) in drawBenchmark()
1369 if (mParams.surfaceType == SurfaceType::Offscreen) in drawBenchmark()
1547 if (framebuffer == 0 && mParams.surfaceType == SurfaceType::Offscreen) in onReplayFramebufferChange()
1738 if (mParams.surfaceType != SurfaceType::Offscreen || !isDefaultFramebuffer(target)) in onReplayInvalidateFramebuffer()
1758 if (mParams.surfaceType != SurfaceType::Offscreen || !isDefaultFramebuffer(target)) in onReplayInvalidateSubFramebuffer()
1773 if (mParams.surfaceType != SurfaceType::Offscreen || !isDefaultFramebuffer(GL_DRAW_FRAMEBUFFER)) in onReplayDrawBuffers()
1786 if (mParams.surfaceType != SurfaceType::Offscreen || !isDefaultFramebuffer(GL_READ_FRAMEBUFFER)) in onReplayReadBuffer()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fShaderDerivateTests.cpp989 …u::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples…
1002 …u::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples… in LinearDerivateCase() argument
1012 m_surfaceType = surfaceType; in LinearDerivateCase()
1226 …u::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples…
1244 …u::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples) in TextureDerivateCase() argument
1254 m_surfaceType = surfaceType; in TextureDerivateCase()
1745 SurfaceType surfaceType; in init() member
1768 SurfaceType surfaceType; in init() member
1780 SurfaceType surfaceType; in init() member
1823 const SurfaceType surfaceType = SURFACETYPE_DEFAULT_FRAMEBUFFER; in init() local
[all …]
/third_party/vk-gl-cts/framework/platform/lnx/X11/
DtcuLnxX11GlxPlatform.cpp520 deUint32 bits = surfaceTypeToDrawableBits(renderCfg.surfaceType); in configMatches()
527 if (renderCfg.surfaceType == RenderConfig::SURFACETYPE_WINDOW && in configMatches()
664 RenderConfig::SurfaceType surfaceType = config.surfaceType; in createDrawable() local
666 if (surfaceType == RenderConfig::SURFACETYPE_DONT_CARE) in createDrawable()
670 surfaceType = RenderConfig::SURFACETYPE_OFFSCREEN_NATIVE; in createDrawable()
672 surfaceType = RenderConfig::SURFACETYPE_WINDOW; in createDrawable()
675 switch (surfaceType) in createDrawable()
/third_party/vk-gl-cts/android/cts/runner/src/com/drawelements/deqp/runner/
DBatchRunConfiguration.java33 public BatchRunConfiguration(String glConfig, String rotation, String surfaceType, in BatchRunConfiguration() argument
37 mSurfaceType = surfaceType; in BatchRunConfiguration()

12345