Home
last modified time | relevance | path

Searched refs:webGlContextAttributes_ (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dwebgl_rendering_context_basic_base.cpp135 if (webGlContextAttributes_ == nullptr) { in SetWebGLContextAttributes()
137 if (webGlContextAttributes_ == nullptr) { in SetWebGLContextAttributes()
143 webGlContextAttributes_->alpha_ = true; in SetWebGLContextAttributes()
146 webGlContextAttributes_->depth_ = true; in SetWebGLContextAttributes()
149 webGlContextAttributes_->stencil_ = true; in SetWebGLContextAttributes()
152 webGlContextAttributes_->premultipliedAlpha_ = true; in SetWebGLContextAttributes()
156 webGlContextAttributes_->preserveDrawingBuffer_ = true; in SetWebGLContextAttributes()
163 webGlContextAttributes_->desynchronized_ = true; in SetWebGLContextAttributes()
167 webGlContextAttributes_->powerPreference_ = highPerformance; in SetWebGLContextAttributes()
172 webGlContextAttributes_->powerPreference_ = lowPower; in SetWebGLContextAttributes()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/context/
H A Dwebgl_rendering_context_basic_base.h67 if (webGlContextAttributes_ == nullptr) { in CreateWebGlContextAttributes()
68 webGlContextAttributes_ = std::make_shared<WebGLContextAttributes>(); in CreateWebGlContextAttributes()
70 return webGlContextAttributes_; in CreateWebGlContextAttributes()
87 std::shared_ptr<WebGLContextAttributes> webGlContextAttributes_ = nullptr; variable