Home
last modified time | relevance | path

Searched refs:createInfo (Results 1 – 7 of 7) sorted by relevance

/base/web/webview/ohos_nweb/src/
Dnweb_enhance_surface_adapter.cpp39 NWebCreateInfo createInfo = { in GetCreateInfo() local
43 GetSize(createInfo, width, height); in GetCreateInfo()
44 GetRenderInterface(createInfo); in GetCreateInfo()
45 return createInfo; in GetCreateInfo()
48 void NWebEnhanceSurfaceAdapter::GetSize(NWebCreateInfo &createInfo, in GetSize() argument
52 createInfo.width = width; in GetSize()
53 createInfo.height = height; in GetSize()
56 void NWebEnhanceSurfaceAdapter::GetRenderInterface(NWebCreateInfo &createInfo) in GetRenderInterface() argument
58createInfo.output_render_frame = [] (const char *buffer, uint32_t width, uint32_t height) -> bool { in GetRenderInterface()
Dnweb_surface_adapter.cpp43 NWebCreateInfo createInfo = { in GetCreateInfo() local
48 return createInfo; in GetCreateInfo()
50 GetSize(surface, createInfo, width, height); in GetCreateInfo()
51 GetRenderInterface(surface, createInfo); in GetCreateInfo()
52 return createInfo; in GetCreateInfo()
56 NWebCreateInfo &createInfo, in GetSize() argument
63 createInfo.width = (width == 0) ? (uint32_t)surface->GetDefaultWidth() : width; in GetSize()
64 createInfo.height = (height == 0) ? (uint32_t)surface->GetDefaultHeight() : height; in GetSize()
67 void NWebSurfaceAdapter::GetRenderInterface(sptr<Surface> surface, NWebCreateInfo &createInfo) in GetRenderInterface() argument
70createInfo.output_render_frame = [surfaceWeak, this] (const char *buffer, uint32_t width, uint32_t… in GetRenderInterface()
Dnweb_helper.cpp407 … auto createInfo = NWebSurfaceAdapter::Instance().GetCreateInfo(surface, initArgs, width, height); in CreateNWeb() local
408 ParseConfig(createInfo.init_args); in CreateNWeb()
409 auto nweb = NWebHelper::Instance().CreateNWeb(createInfo); in CreateNWeb()
429 …auto createInfo = NWebEnhanceSurfaceAdapter::Instance().GetCreateInfo(enhanceSurfaceInfo, initArgs… in CreateNWeb() local
430 auto nweb = NWebHelper::Instance().CreateNWeb(createInfo); in CreateNWeb()
/base/web/webview/ohos_nweb/include/
Dnweb_enhance_surface_adapter.h35 void GetSize(NWebCreateInfo &createInfo, uint32_t width, uint32_t height) const;
36 void GetRenderInterface(NWebCreateInfo &createInfo);
Dnweb_adapter_helper.h42 void ParseConfig(NWebInitArgs& createInfo);
46 void ParseConfig(NWebCreateInfo& createInfo);
Dnweb_surface_adapter.h40 …void GetSize(sptr<Surface> surface, NWebCreateInfo &createInfo, uint32_t width, uint32_t height) c…
41 void GetRenderInterface(sptr<Surface> surface, NWebCreateInfo &createInfo);
/base/web/webview/test/unittest/nweb_surface_adapter_test/
Dnweb_surface_adapter_test.cpp108 NWebCreateInfo createInfo; variable
109 surfaceAdapter.GetSize(g_surface, createInfo, DEFAULT_WIDTH, DEFAULT_HEIGHT);
110 EXPECT_NE(createInfo.width, 0);