Searched refs:createInfo (Results 1 – 7 of 7) sorted by relevance
/base/web/webview/ohos_nweb/src/ |
D | nweb_enhance_surface_adapter.cpp | 39 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 58 …createInfo.output_render_frame = [] (const char *buffer, uint32_t width, uint32_t height) -> bool { in GetRenderInterface()
|
D | nweb_surface_adapter.cpp | 43 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 70 …createInfo.output_render_frame = [surfaceWeak, this] (const char *buffer, uint32_t width, uint32_t… in GetRenderInterface()
|
D | nweb_helper.cpp | 407 … 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/ |
D | nweb_enhance_surface_adapter.h | 35 void GetSize(NWebCreateInfo &createInfo, uint32_t width, uint32_t height) const; 36 void GetRenderInterface(NWebCreateInfo &createInfo);
|
D | nweb_adapter_helper.h | 42 void ParseConfig(NWebInitArgs& createInfo); 46 void ParseConfig(NWebCreateInfo& createInfo);
|
D | nweb_surface_adapter.h | 40 …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/ |
D | nweb_surface_adapter_test.cpp | 108 NWebCreateInfo createInfo; variable 109 surfaceAdapter.GetSize(g_surface, createInfo, DEFAULT_WIDTH, DEFAULT_HEIGHT); 110 EXPECT_NE(createInfo.width, 0);
|