Searched refs:GetContextAttr (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/ |
H A D | webgl_rendering_context_basic_base.cpp | 119 string WebGLRenderingContextBasicBase::GetContextAttr( in GetContextAttr() function in OHOS::Rosen::WebGLRenderingContextBasicBase 142 if (GetContextAttr(vec[i], "alpha", 7, 4) == "true") { // 7 alpha length 4 true in SetWebGLContextAttributes() 145 if (GetContextAttr(vec[i], "depth", 7, 4) == "true") { // 7 depth length 4 true in SetWebGLContextAttributes() 148 if (GetContextAttr(vec[i], "stencil", 9, 4) == "true") { // 9 stencil length 4 true in SetWebGLContextAttributes() 151 …if (GetContextAttr(vec[i], "premultipliedAlpha", 23, 4) == "true") { // 23 premultipliedAlpha leng… in SetWebGLContextAttributes() 155 if (GetContextAttr(vec[i], "preserveDrawingBuffer", 18, 4) == "true") { in SetWebGLContextAttributes() 159 if (GetContextAttr(vec[i], "failIfMajorPerformanceCaveat", 30, 4) == "true") { in SetWebGLContextAttributes() 162 …if (GetContextAttr(vec[i], "desynchronized", 16, 4) == "true") { // 16 desynchronized length 4 true in SetWebGLContextAttributes() 165 …string highPerformance = GetContextAttr(vec[i], "powerPreference", 18, 16); // 18 16 powerPreferen… in SetWebGLContextAttributes() 170 … string lowPower = GetContextAttr(vec[i], "powerPreference", 18, 9); // 18 9 powerPreference length in SetWebGLContextAttributes() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/context/ |
H A D | webgl_rendering_context_basic_base.h | 80 …std::string GetContextAttr(const std::string& str, const std::string& key, int keyLength, int valu…
|