Home
last modified time | relevance | path

Searched refs:surface (Results 1 – 25 of 39) sorted by relevance

12

/base/web/webview/ohos_nweb/src/
Dnweb_surface_adapter.cpp39 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 …]
Dnweb_window_adapter.cpp70 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()
Dnweb_helper.cpp327 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/
Dnweb_surface_adapter.h34 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_…
Dnweb_adapter_helper.h33 std::shared_ptr<NWeb> CreateNWeb(sptr<Surface> surface,
/base/web/webview/test/unittest/nweb_surface_adapter_test/
Dnweb_surface_adapter_test.cpp103 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 …]
DBUILD.gn34 "//foundation/graphic/graphic_2d/frameworks/surface/include",
66 "graphic_standard:surface",
/base/update/updater/services/ui/driver/
Dsurface_dev.cpp75 GrSurface surface {0}; in GetScreenSize() local
77 drv_->GetGrSurface(surface); in GetScreenSize()
79 w = surface.width; in GetScreenSize()
80 h = surface.height; in GetScreenSize()
Dfbdev_driver.cpp118 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()
Dgraphic_drv.h32 virtual void GetGrSurface(GrSurface &surface) = 0;
Ddrm_driver.cpp32 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()
Dfbdev_driver.h39 void GetGrSurface(GrSurface &surface) override;
Ddrm_driver.h50 void GetGrSurface(GrSurface &surface) override;
/base/useriam/face_auth/test/fuzztest/faceauthservice_fuzzer/
Dface_auth_service_fuzzer.cpp66 auto surface = Surface::CreateSurfaceAsConsumer(); in FuzzSetBufferProducer() local
67 if (surface == nullptr) { in FuzzSetBufferProducer()
71 bufferProducer = surface->GetProducer(); in FuzzSetBufferProducer()
DBUILD.gn54 external_deps += [ "graphic_standard:surface" ]
/base/web/webview/test/fuzztest/ohos_nweb/flushbuffer_fuzzer/
Dflushbuffer_fuzzer.cpp126 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/
DBUILD.gn44 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/
DBUILD.gn24 "//foundation/graphic/graphic_2d/frameworks/surface/include",
25 "//foundation/graphic/graphic_2d/interfaces/innerkits/surface",
68 "graphic_standard:surface",
Dohos_adapter_helper_test.cpp107 sptr<Surface> surface = nullptr; variable
111 auto nweb = NWebAdapterHelper::Instance().CreateNWeb(surface, initArgs, width, height);
/base/web/webview/test/fuzztest/ohos_nweb/copyframe_fuzzer/
Dcopyframe_fuzzer.cpp127 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/
Drequestbuffer_fuzzer.cpp126 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/
Dnweb_window_adapter_test.cpp143 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/
DBUILD.gn50 "//foundation/graphic/graphic_2d/frameworks/surface/include",
51 "//foundation/graphic/graphic_2d/interfaces/innerkits/surface",
/base/useriam/face_auth/frameworks/js/napi/
DBUILD.gn34 external_deps += [ "graphic_standard:surface" ]
/base/theme/wallpaper_mgr/test/
DBUILD.gn54 "graphic_standard:surface",
95 "graphic_standard:surface",

12