Home
last modified time | relevance | path

Searched refs:surfaceType (Results 1 - 25 of 83) sorted by relevance

1234

/third_party/skia/fuzz/
H A 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()
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()
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, SkColorTyp in DEF_FUZZ()
124 make_characterization(Fuzz* fuzz, GrDirectContext* dContext, SkImageInfo& ii, SkColorType surfaceType, GrSurfaceOrigin origin) make_characterization() argument
188 create_surface_and_characterization(Fuzz* fuzz, GrDirectContext* dContext, SkColorType surfaceType, GrSurfaceOrigin origin) create_surface_and_characterization() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
H A 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()
H A DEGLBackwardsCompatibleContextTest.cpp52 EGLint surfaceType; variable
53 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType);
54 if (surfaceType & EGL_PBUFFER_BIT)
66 EGLint surfaceType = EGL_NONE; variable
67 eglGetConfigAttrib(mDisplay, mConfig, EGL_SURFACE_TYPE, &surfaceType);
68 if (surfaceType & EGL_PBUFFER_BIT)
H A DEGLContextCompatibilityTest.cpp373 EGLint surfaceType; variable
374 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType);
377 ANGLE_SKIP_TEST_IF((surfaceType & EGL_WINDOW_BIT) == 0);
398 EGLint surfaceType; variable
399 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType);
402 ANGLE_SKIP_TEST_IF((surfaceType & EGL_PBUFFER_BIT) == 0);
428 EGLint surfaceType; variable
429 eglGetConfigAttrib(mDisplay, config1, EGL_SURFACE_TYPE, &surfaceType);
432 ANGLE_SKIP_TEST_IF((surfaceType & EGL_WINDOW_BIT) == 0);
460 EGLint surfaceType; variable
[all...]
H A 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()
H A DEGLQueryContextTest.cpp43 EGLint surfaceType = EGL_NONE; variable
44 eglGetConfigAttrib(mDisplay, mConfig, EGL_SURFACE_TYPE, &surfaceType);
45 if (surfaceType & EGL_PBUFFER_BIT)
/third_party/vk-gl-cts/framework/platform/ohos/context/
H A 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<OHOS::RCI_CONTEXT_FLAG>(flags))) in OhosRendContext()
/third_party/vk-gl-cts/framework/opengl/
H A DgluRenderConfig.cpp147 case tcu::SURFACETYPE_WINDOW: config->surfaceType = RenderConfig::SURFACETYPE_WINDOW; break; in parseRenderConfig()
148 case tcu::SURFACETYPE_OFFSCREEN_NATIVE: config->surfaceType = RenderConfig::SURFACETYPE_OFFSCREEN_NATIVE; break; in parseRenderConfig()
149 case tcu::SURFACETYPE_OFFSCREEN_GENERIC: config->surfaceType = RenderConfig::SURFACETYPE_OFFSCREEN_GENERIC; break; 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; break; in parseRenderConfig()
H A DgluRenderConfig.hpp79 SurfaceType surfaceType; member
98 , surfaceType (SURFACETYPE_DONT_CARE) in RenderConfig()
/third_party/vk-gl-cts/modules/egl/
H A 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 clean up test") in ThreadCleanUpTest()
172 , m_surfaceType (surfaceType) in ThreadCleanUpTest()
H A DteglQuerySurfaceTests.cpp192 if (multisampleResolve == EGL_MULTISAMPLE_RESOLVE_BOX && !(info.surfaceType & EGL_MULTISAMPLE_RESOLVE_BOX_BIT)) 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& info);
467 void SurfaceAttribCase::testAttributes (EGLDisplay display, EGLSurface surface, EGLint surfaceType, const ConfigInfo& info) 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_BI in init() local
715 baseFilters << surfaceType<EGL_PIXMAP_BIT>; init() local
730 baseFilters << surfaceType<EGL_PBUFFER_BIT>; init() local
751 baseFilters << surfaceType<EGL_WINDOW_BIT>; init() local
766 baseFilters << surfaceType<EGL_PIXMAP_BIT>; init() local
781 baseFilters << surfaceType<EGL_PBUFFER_BIT>; init() local
[all...]
H A 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() local
373 baseFilters << surfaceType<EGL_PIXMAP_BIT>; in init() local
388 baseFilters << surfaceType<EGL_PBUFFER_BIT>; in init() local
403 baseFilters << surfaceType<EGL_WINDOW_BIT>; in init() local
418 baseFilters << surfaceType<EGL_PIXMAP_BIT>; in init() local
433 baseFilters << surfaceType<EGL_WINDOW_BIT>; in init() local
448 baseFilters << surfaceType<EGL_PIXMAP_BIT>; in init() local
H A DteglRenderCase.cpp298 MultiContextRenderCase::MultiContextRenderCase (EglTestContext& eglTestCtx, const char* name, const char* description, EGLint api, EGLint surfaceType, const eglu::FilterList& filters, int numContextsPerApi) in MultiContextRenderCase() argument
299 : RenderCase (eglTestCtx, name, description, surfaceType, filters) in MultiContextRenderCase()
396 static bool surfaceType (const eglu::CandidateConfig& c) in surfaceType() function
398 return (c.surfaceType() & Type) == Type; in surfaceType()
438 { "window", EGL_WINDOW_BIT, surfaceType<EGL_WINDOW_BIT> }, in getDefaultRenderFilterLists()
439 { "pixmap", EGL_PIXMAP_BIT, surfaceType<EGL_PIXMAP_BIT>, }, in getDefaultRenderFilterLists()
440 { "pbuffer", EGL_PBUFFER_BIT, surfaceType<EGL_PBUFFER_BIT> } in getDefaultRenderFilterLists()
H A DteglColorClearCase.hpp44 eglw::EGLint surfaceType,
62 eglw::EGLint surfaceType,
H A DteglResizeTests.cpp116 virtual EGLenum surfaceType (void) const { return EGL_WINDOW_BIT; } in surfaceType() function in deqp::egl::ResizeTest
131 EGLConfig getEGLConfig (const Library& egl, const EGLDisplay eglDisplay, EGLenum surfaceType) in getEGLConfig() argument
135 attribMap[EGL_SURFACE_TYPE] = surfaceType; in getEGLConfig()
148 const EGLConfig eglConfig = getEGLConfig(egl, eglDisplay, surfaceType()); in init()
380 EGLenum surfaceType (void) const;
383 EGLenum PreserveBackBufferCase::surfaceType (void) const in surfaceType() function in deqp::egl::PreserveBackBufferCase
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
H A DvktShaderRenderDerivateTests.cpp558 surfaceType = SURFACETYPE_UNORM_FBO; in DerivateCaseDefinition()
570 SurfaceType surfaceType; member
654 m_colorFormat = vk::mapTextureFormat(glu::mapGLInternalFormat(m_definitions.surfaceType == SURFACETYPE_FLOAT_FBO ? GL_RGBA32UI : GL_RGBA8)); in TriangleDerivateCaseInstance()
665 switch (m_definitions.surfaceType) in getSurfaceThreshold()
713 if (m_definitions.surfaceType == SURFACETYPE_FLOAT_FBO) in iterate()
1117 SurfaceType surfaceType,
1136 SurfaceType surfaceType, in LinearDerivateCase()
1149 m_definitions.surfaceType = surfaceType; in LinearDerivateCase()
1177 if (m_definitions.surfaceType in LinearDerivateCase()
1130 LinearDerivateCase(tcu::TestContext& testCtx, const std::string& name, DerivateFunc func, glu::DataType type, glu::Precision precision, bool inNonUniformControlFlow, SurfaceType surfaceType, int numSamples, const std::string& fragmentSrcTmpl, BaseUniformType usedDefaultUniform) LinearDerivateCase() argument
1426 TextureDerivateCase(tcu::TestContext& testCtx, const std::string& name, DerivateFunc func, glu::DataType type, glu::Precision precision, SurfaceType surfaceType, int numSamples) TextureDerivateCase() argument
1937 SurfaceType surfaceType; init() member
1950 SurfaceType surfaceType; init() member
1994 const SurfaceType surfaceType = SURFACETYPE_UNORM_FBO; init() local
2019 const SurfaceType surfaceType = s_fboConfigs[caseNdx].surfaceType; init() local
2050 const SurfaceType surfaceType = s_textureConfigs[texCaseNdx].surfaceType; init() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
H A DvktShaderRenderDerivateTests.cpp534 surfaceType = SURFACETYPE_UNORM_FBO; in DerivateCaseDefinition()
546 SurfaceType surfaceType; member
630 m_colorFormat = vk::mapTextureFormat(glu::mapGLInternalFormat(m_definitions.surfaceType == SURFACETYPE_FLOAT_FBO ? GL_RGBA32UI : GL_RGBA8)); 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()
1124 m_definitions.surfaceType = surfaceType; in LinearDerivateCase()
1146 const bool packToInt = m_definitions.surfaceType in initPrograms()
1104 LinearDerivateCase(tcu::TestContext& testCtx, const std::string& name, const std::string& description, DerivateFunc func, glu::DataType type, glu::Precision precision, bool inNonUniformControlFlow, SurfaceType surfaceType, int numSamples, const std::string& fragmentSrcTmpl, BaseUniformType usedDefaultUniform) LinearDerivateCase() argument
1401 TextureDerivateCase(tcu::TestContext& testCtx, const std::string& name, const std::string& description, DerivateFunc func, glu::DataType type, glu::Precision precision, SurfaceType surfaceType, int numSamples) TextureDerivateCase() argument
1856 SurfaceType surfaceType; init() member
1869 SurfaceType surfaceType; init() member
1909 const SurfaceType surfaceType = SURFACETYPE_UNORM_FBO; init() local
1930 const SurfaceType surfaceType = s_fboConfigs[caseNdx].surfaceType; init() local
1960 const SurfaceType surfaceType = s_textureConfigs[texCaseNdx].surfaceType; init() local
[all...]
/third_party/vk-gl-cts/framework/egl/
H A 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()
H A 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()
H A DegluConfigInfo.hpp68 deInt32 surfaceType; member in eglu::ConfigInfo
117 , surfaceType (0) in ConfigInfo()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
H A 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 ! in onReplayReadBuffer()
1891 CombineWithSurfaceType(const TracePerfParams &in, SurfaceType surfaceType) CombineWithSurfaceType() argument
[all...]
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fShaderDerivateTests.cpp989 LinearDerivateCase (Context& context, const char* name, const char* description, DerivateFunc func, glu::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples, const char* fragmentSrcTmpl);
1002 LinearDerivateCase::LinearDerivateCase (Context& context, const char* name, const char* description, DerivateFunc func, glu::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples, const char* fragmentSrcTmpl) in LinearDerivateCase() argument
1012 m_surfaceType = surfaceType; in LinearDerivateCase()
1226 TextureDerivateCase (Context& context, const char* name, const char* description, DerivateFunc func, glu::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples);
1244 TextureDerivateCase::TextureDerivateCase (Context& context, const char* name, const char* description, DerivateFunc func, glu::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 in init() local
1843 const SurfaceType surfaceType = s_fboConfigs[caseNdx].surfaceType; init() local
1877 const SurfaceType surfaceType = s_hintFboConfigs[fboCaseNdx].surfaceType; init() local
1908 const SurfaceType surfaceType = s_textureConfigs[texCaseNdx].surfaceType; init() local
[all...]
/third_party/vk-gl-cts/android/cts/runner/src/com/drawelements/deqp/runner/
H A DBatchRunConfiguration.java33 public BatchRunConfiguration(String glConfig, String rotation, String surfaceType, in BatchRunConfiguration() argument
37 mSurfaceType = surfaceType; in BatchRunConfiguration()
/third_party/vk-gl-cts/framework/platform/lnx/X11/
H A 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/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DPixmapTest.cpp44 EGLint surfaceType = 0; variable
46 &surfaceType);
47 mSupportsPixmaps = (surfaceType & EGL_PIXMAP_BIT) != 0;

Completed in 23 milliseconds

1234