/base/web/webview/ohos_nweb/src/ |
D | nweb_surface_adapter.cpp | 39 NWebCreateInfo NWebSurfaceAdapter::GetCreateInfo(sptr<Surface> surface, in GetCreateInfo() argument 46 .producer_surface = reinterpret_cast<void *>(&surface), in GetCreateInfo() 48 if (surface == nullptr) { in GetCreateInfo() 51 GetSize(surface, createInfo, width, height); in GetCreateInfo() 52 GetRenderInterface(surface, createInfo); in GetCreateInfo() 56 void NWebSurfaceAdapter::GetSize(sptr<Surface> surface, in GetSize() argument 61 if (surface == nullptr) { in GetSize() 64 createInfo.width = (width == 0) ? (uint32_t)surface->GetDefaultWidth() : width; in GetSize() 65 createInfo.height = (height == 0) ? (uint32_t)surface->GetDefaultHeight() : height; in GetSize() 68 void NWebSurfaceAdapter::GetRenderInterface(sptr<Surface> surface, NWebCreateInfo &createInfo) in GetRenderInterface() argument [all …]
|
D | nweb_window_adapter.cpp | 70 sptr<Surface> surface = window->GetSurfaceNode()->GetSurface(); in GetRenderInterface() local 71 if (surface == nullptr) { in GetRenderInterface() 87 SurfaceError ret = surface->RequestBuffer(surfaceBuffer, releaseFence, config); in GetRenderInterface() 96 surface->CancelBuffer(surfaceBuffer); in GetRenderInterface() 177 sptr<Surface> surface = window->GetSurfaceNode()->GetSurface(); in VsyncCb() local 178 if (surface == nullptr) { in VsyncCb() 192 …SurfaceError ret = surface->FlushBuffer(windowInfoMap_[window].cachedSurfaceBuffer, -1, flushConfi… in VsyncCb()
|
D | nweb_helper.cpp | 327 std::shared_ptr<NWeb> NWebAdapterHelper::CreateNWeb(sptr<Surface> surface, const NWebInitArgs &init… in CreateNWeb() argument 330 if (surface == nullptr) { in CreateNWeb() 338 … auto createInfo = NWebSurfaceAdapter::Instance().GetCreateInfo(surface, initArgs, width, height); in CreateNWeb()
|
/base/web/webview/ohos_nweb/include/ |
D | nweb_surface_adapter.h | 34 NWebCreateInfo GetCreateInfo(sptr<Surface> surface, 40 …void GetSize(sptr<Surface> surface, NWebCreateInfo &createInfo, uint32_t width, uint32_t height) c… 41 void GetRenderInterface(sptr<Surface> surface, NWebCreateInfo &createInfo); 42 sptr<SurfaceBuffer> RequestBuffer(sptr<Surface> surface, uint32_t width, uint32_t height); 44 …bool FlushBuffer(sptr<Surface> surface, sptr<SurfaceBuffer> surfaceBuffer, uint32_t width, uint32_…
|
D | nweb_adapter_helper.h | 33 std::shared_ptr<NWeb> CreateNWeb(sptr<Surface> surface,
|
/base/web/webview/test/unittest/nweb_surface_adapter_test/ |
D | nweb_surface_adapter_test.cpp | 103 sptr<Surface> surface = nullptr; variable 104 surfaceAdapter.GetCreateInfo(surface, GetInitArgs(), DEFAULT_WIDTH, DEFAULT_HEIGHT); 109 surfaceAdapter.GetSize(surface, createInfo, DEFAULT_WIDTH, DEFAULT_HEIGHT); 124 sptr<Surface> surface = nullptr; variable 125 surfaceAdapter.GetRenderInterface(surface, g_info); 146 sptr<Surface> surface = nullptr; variable 147 surfaceBuffer = surfaceAdapter.RequestBuffer(surface, DEFAULT_WIDTH, DEFAULT_HEIGHT); 163 sptr<Surface> surface = g_window->GetSurfaceNode()->GetSurface(); variable 164 EXPECT_NE(surface, nullptr); 174 surface->RequestBuffer(g_surfaceBuffer, releaseFence, requestConfig); [all …]
|
D | BUILD.gn | 34 "//foundation/graphic/graphic_2d/frameworks/surface/include", 66 "graphic_standard:surface",
|
/base/update/updater/services/ui/driver/ |
D | surface_dev.cpp | 75 GrSurface surface {0}; in GetScreenSize() local 77 drv_->GetGrSurface(surface); in GetScreenSize() 79 w = surface.width; in GetScreenSize() 80 h = surface.height; in GetScreenSize()
|
D | fbdev_driver.cpp | 118 void FbdevDriver::GetGrSurface(GrSurface &surface) in GetGrSurface() argument 120 surface.width = static_cast<int>(vinfo_.xres); in GetGrSurface() 121 surface.height = static_cast<int>(vinfo_.yres); in GetGrSurface() 122 surface.rowBytes = finfo_.line_length; in GetGrSurface() 123 surface.pixelBytes = vinfo_.bits_per_pixel / 8; // 8: byte bit len in GetGrSurface()
|
D | graphic_drv.h | 32 virtual void GetGrSurface(GrSurface &surface) = 0;
|
D | drm_driver.cpp | 32 void DrmDriver::GetGrSurface(GrSurface &surface) in GetGrSurface() argument 34 surface.width = static_cast<int>(buff_.width); in GetGrSurface() 35 surface.height = static_cast<int>(buff_.height); in GetGrSurface() 36 surface.rowBytes = 0; in GetGrSurface() 37 surface.pixelBytes = 0; in GetGrSurface()
|
D | fbdev_driver.h | 39 void GetGrSurface(GrSurface &surface) override;
|
D | drm_driver.h | 50 void GetGrSurface(GrSurface &surface) override;
|
/base/useriam/face_auth/test/fuzztest/faceauthservice_fuzzer/ |
D | face_auth_service_fuzzer.cpp | 66 auto surface = Surface::CreateSurfaceAsConsumer(); in FuzzSetBufferProducer() local 67 if (surface == nullptr) { in FuzzSetBufferProducer() 71 bufferProducer = surface->GetProducer(); in FuzzSetBufferProducer()
|
D | BUILD.gn | 54 external_deps += [ "graphic_standard:surface" ]
|
/base/web/webview/test/fuzztest/ohos_nweb/flushbuffer_fuzzer/ |
D | flushbuffer_fuzzer.cpp | 126 sptr<Surface> surface = window->GetSurfaceNode()->GetSurface(); in DoSomethingInterestingWithMyAPI() local 127 if (surface == nullptr) { in DoSomethingInterestingWithMyAPI() 140 surface->RequestBuffer(surfaceBuffer, releaseFence, requestConfig); in DoSomethingInterestingWithMyAPI() 154 surfaceAdapter.FlushBuffer(surface, surfaceBuffer, width, height); in DoSomethingInterestingWithMyAPI()
|
/base/useriam/face_auth/frameworks/ipc/ |
D | BUILD.gn | 44 external_deps += [ "graphic_standard:surface" ] 67 external_deps += [ "graphic_standard:surface" ] 69 [ "//foundation/graphic/graphic_2d/frameworks/surface/include" ]
|
/base/web/webview/test/unittest/ohos_adapter_helper/ |
D | BUILD.gn | 24 "//foundation/graphic/graphic_2d/frameworks/surface/include", 25 "//foundation/graphic/graphic_2d/interfaces/innerkits/surface", 68 "graphic_standard:surface",
|
D | ohos_adapter_helper_test.cpp | 107 sptr<Surface> surface = nullptr; variable 111 auto nweb = NWebAdapterHelper::Instance().CreateNWeb(surface, initArgs, width, height);
|
/base/web/webview/test/fuzztest/ohos_nweb/copyframe_fuzzer/ |
D | copyframe_fuzzer.cpp | 127 sptr<Surface> surface = window->GetSurfaceNode()->GetSurface(); in DoSomethingInterestingWithMyAPI() local 128 if (surface == nullptr) { in DoSomethingInterestingWithMyAPI() 149 surface->RequestBuffer(surfaceBuffer, releaseFence, requestConfig); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/ohos_nweb/requestbuffer_fuzzer/ |
D | requestbuffer_fuzzer.cpp | 126 auto surface = NWebSurfaceAdapter::Instance(); in DoSomethingInterestingWithMyAPI() local 135 surface.RequestBuffer(window->GetSurfaceNode()->GetSurface(), width, height); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/unittest/nweb_window_adapter_test/ |
D | nweb_window_adapter_test.cpp | 143 sptr<Surface> surface = g_window->GetSurfaceNode()->GetSurface(); variable 144 EXPECT_NE(surface, nullptr); 154 surface->RequestBuffer(g_surfaceBuffer, releaseFence, requestConfig);
|
/base/web/webview/ohos_nweb/ |
D | BUILD.gn | 50 "//foundation/graphic/graphic_2d/frameworks/surface/include", 51 "//foundation/graphic/graphic_2d/interfaces/innerkits/surface",
|
/base/useriam/face_auth/frameworks/js/napi/ |
D | BUILD.gn | 34 external_deps += [ "graphic_standard:surface" ]
|
/base/theme/wallpaper_mgr/test/ |
D | BUILD.gn | 54 "graphic_standard:surface", 95 "graphic_standard:surface",
|