Home
last modified time | relevance | path

Searched refs:sharedContext (Results 1 – 20 of 20) sorted by relevance

/ohos5.0/foundation/multimedia/image_effect/frameworks/native/render_environment/graphic/
H A Drender_context.cpp28 bool RenderContext::Create(RenderContext *sharedContext) in Create() argument
38 context_ = eglCreateContext(display_, EGL_NO_CONFIG_KHR, sharedContext, attribList); in Create()
H A Drender_context.h34 virtual bool Create(RenderContext *sharedContext);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/
H A Drs_canvas_render_node_test.cpp279 std::shared_ptr<RSContext> sharedContext(rsContext);
280 std::weak_ptr<RSRenderNode> parent = std::make_shared<RSRenderNode>(1, sharedContext);
304 auto sharedContext = std::make_shared<RSContext>(); variable
305 auto rSCanvasRenderNodeParent = std::make_shared<RSCanvasRenderNode>(nodeId + 1, sharedContext);
H A Drs_surface_render_node_two_test.cpp319 std::shared_ptr<RSContext> sharedContext = std::make_shared<RSContext>(); variable
320 renderNode->context_ = sharedContext;
337 sharedContext = nullptr;
338 renderNode->context_ = sharedContext;
390 std::shared_ptr<RSContext> sharedContext = std::make_shared<RSContext>(); variable
392 parentNode->context_ = sharedContext;
509 std::shared_ptr<RSContext> sharedContext = std::make_shared<RSContext>(); variable
510 renderNode->context_ = sharedContext;
513 EXPECT_TRUE(sharedContext != nullptr);
H A Drs_display_render_node_test.cpp315 std::shared_ptr<RSContext> sharedContext(rsContext);
316 std::shared_ptr<RSBaseRenderNode> node = std::make_shared<RSRenderNode>(1, sharedContext);
H A Drs_canvas_drawing_render_node_test.cpp278 std::shared_ptr<RSContext> sharedContext = std::make_shared<RSContext>(); variable
279 std::weak_ptr<RSContext> context = sharedContext;
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/
H A Degl_state.cpp587 EGLContext sharedContext = EGL_NO_CONTEXT; in CreateContext() local
589 sharedContext = backendConfig->sharedContext; in CreateContext()
591 …plat_.context = eglCreateContext(plat_.display, plat_.config, sharedContext, context_attributes.da… in CreateContext()
674 const EGLContext sharedContext = backendConfig ? backendConfig->sharedContext : EGL_NO_CONTEXT; in CreateContext() local
675 if (appContext == EGL_NO_CONTEXT && sharedContext == EGL_NO_CONTEXT) { in CreateContext()
H A Dwgl_state.cpp424 HGLRC sharedContext = nullptr; in CreateContext() local
427 sharedContext = backendConfig->sharedContext; in CreateContext()
487 plat_.context = wglCreateContextAttribsARB(plat_.display, sharedContext, WGL_ATTRIBS); in CreateContext()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_canvas_drawing_render_node_drawable.cpp281 SharedTextureContext* sharedContext = new SharedTextureContext(image_); // last image in FlushForGL() local
285 info, nullptr, SKResourceManager::DeleteSharedTextureContext, sharedContext); in FlushForGL()
557 SharedTextureContext* sharedContext = new SharedTextureContext(image_); in DrawCaptureImage() local
560 nullptr, SKResourceManager::DeleteSharedTextureContext, sharedContext); in DrawCaptureImage()
768 SharedTextureContext* sharedContext = new SharedTextureContext(image_); // will move image in ResetSurfaceWithTexture() local
771 … origin, bitmapFormat, nullptr, SKResourceManager::DeleteSharedTextureContext, sharedContext)) { in ResetSurfaceWithTexture()
H A Drs_ui_first_surface_render_node_drawable.cpp204 SharedTextureContext* sharedContext = new SharedTextureContext(completeImage); in GetCompletedImage() local
209 origin, info, nullptr, SKResourceManager::DeleteSharedTextureContext, sharedContext); in GetCompletedImage()
H A Drs_render_node_drawable.cpp597 … SharedTextureContext* sharedContext = new SharedTextureContext(cachedImage_); // will move image in GetCachedImage() local
600 origin, info, nullptr, DeleteSharedTextureContext, sharedContext); in GetCachedImage()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_ui_capture.cpp261 std::shared_ptr<Drawing::GPUContext> sharedContext = nullptr; in SetCanvas() local
263sharedContext = RSOffscreenRenderThread::Instance().GetRenderContext()->GetSharedDrGPUContext(); in SetCanvas()
265sharedContext = RSMainThread::Instance()->GetRenderEngine()->GetRenderContext()->GetSharedDrGPUCon… in SetCanvas()
267 canvas->SetGrRecordingContext(sharedContext); in SetCanvas()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/gles/
H A Dintf_device_gles.h52 EGLContext sharedContext { EGL_NO_CONTEXT };
241 HGLRC sharedContext { nullptr };
/ohos5.0/base/print/print_fwk/frameworks/ohprint/src/
H A Dprint_capi.cpp92 auto sharedContext = weakContext->lock(); in GetUIContent() local
94 … OHOS::AbilityRuntime::Context::ConvertTo<OHOS::AbilityRuntime::AbilityContext>(sharedContext); in GetUIContent()
100 … OHOS::AbilityRuntime::Context::ConvertTo<OHOS::AbilityRuntime::UIExtensionContext>(sharedContext); in GetUIContent()
/ohos5.0/docs/zh-cn/application-dev/faqs/
H A Dfaqs-graphics.md130 可以使用sharedContext,实现EGL在子线程中操作。另外绘制操作可通过调用OpenGL实现。
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/pointer_render/
H A Drs_pointer_render_manager.cpp318 SharedTextureContext* sharedContext = new SharedTextureContext(image_); in RunColorPickerTaskBackground() local
321 SKResourceManager::DeleteSharedTextureContext, sharedContext); in RunColorPickerTaskBackground()
/ohos5.0/foundation/graphic/graphic_3d/3d_scene_adapter/src/
H A Dscene_adapter.cpp241 glExtra.sharedContext = EGL_NO_CONTEXT; in InitEngine()
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dui_content_impl.cpp1266 auto sharedContext = context.lock(); in CommonInitializeForm() local
1267 CHECK_NULL_VOID(sharedContext); in CommonInitializeForm()
1269 … OHOS::AbilityRuntime::Context::ConvertTo<OHOS::AbilityRuntime::AbilityContext>(sharedContext); in CommonInitializeForm()
1819 auto sharedContext = context.lock(); in CommonInitialize() local
1820 CHECK_NULL_VOID(sharedContext); in CommonInitialize()
1822 … OHOS::AbilityRuntime::Context::ConvertTo<OHOS::AbilityRuntime::AbilityContext>(sharedContext); in CommonInitialize()
1889 auto sharedContext = context.lock(); in CommonInitialize() local
1890 CHECK_NULL_VOID(sharedContext); in CommonInitialize()
1892 … OHOS::AbilityRuntime::Context::ConvertTo<OHOS::AbilityRuntime::AbilityContext>(sharedContext); in CommonInitialize()
H A Dace_container.cpp3329 auto sharedContext = runtimeContext_.lock(); in TerminateUIExtension() local
3330 …ionContext = AbilityRuntime::Context::ConvertTo<AbilityRuntime::UIExtensionContext>(sharedContext); in TerminateUIExtension()
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/
H A Dlume_common.cpp250 glesExtra.sharedContext = gfxContext; in CreateRenderContext()