Home
last modified time | relevance | path

Searched refs:surface (Results 1 - 25 of 83) sorted by relevance

1234

/base/web/webview/ohos_nweb/src/
H A Dnweb_surface_adapter.cpp34 NWebOutputFrameCallbackImpl(wptr<Surface> surface, NWebSurfaceAdapter *adapter) : surface_(surface), in NWebOutputFrameCallbackImpl() argument
54 std::shared_ptr<NWebCreateInfoImpl> NWebSurfaceAdapter::GetCreateInfo(sptr<Surface> surface, in GetCreateInfo() argument
59 createInfo->SetProducerSurface(reinterpret_cast<void *>(&surface)); in GetCreateInfo()
61 if (surface == nullptr) { in GetCreateInfo()
66 createInfo->SetWidth((width == 0) ? (uint32_t)surface->GetDefaultWidth() : width); in GetCreateInfo()
67 createInfo->SetHeight((height == 0) ? (uint32_t)surface->GetDefaultHeight() : height); in GetCreateInfo()
69 wptr<Surface> surfaceWeak(surface); in GetCreateInfo()
77 sptr<Surface> surface = surfaceWeak.promote(); in OutputFrameCallback() local
78 if (surface in OutputFrameCallback()
96 RequestBuffer(sptr<Surface> surface, uint32_t width, uint32_t height) RequestBuffer() argument
164 FlushBuffer( sptr<Surface> surface, sptr<SurfaceBuffer> surfaceBuffer, uint32_t width, uint32_t height) FlushBuffer() argument
[all...]
/base/web/webview/ohos_adapter/graphic_adapter/src/
H A Dwindow_adapter_impl.cpp21 #include "foundation/graphic/graphic_surface/interfaces/inner_api/surface/surface.h"
22 #include "foundation/graphic/graphic_surface/interfaces/inner_api/surface/window.h"
23 #include "foundation/graphic/graphic_surface/surface/include/native_window.h"
58 if (!nativeWindow || !nativeWindow->surface) { in NativeWindowSurfaceCleanCache()
59 WVLOG_D("window or surface is null, no need to clean surface cache"); in NativeWindowSurfaceCleanCache()
62 nativeWindow->surface->CleanCache(); in NativeWindowSurfaceCleanCache()
68 if (!nativeWindow || !nativeWindow->surface) { in NativeWindowSurfaceCleanCacheWithPara()
69 WVLOG_D("window or surface i in NativeWindowSurfaceCleanCacheWithPara()
[all...]
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_producer_surface_adapter_wrapper.cpp34 ArkWebRefPtr<ArkSurfaceBufferAdapter> surface; in RequestBuffer() local
36 surface = ctocpp_->RequestBuffer(fence, nullptr); in RequestBuffer()
38 surface = ctocpp_->RequestBuffer(fence, new ArkBufferRequestConfigAdapterImpl(config)); in RequestBuffer()
41 if (CHECK_REF_PTR_IS_NULL(surface)) { in RequestBuffer()
45 return std::make_shared<ArkSurfaceBufferAdapterWrapper>(surface); in RequestBuffer()
H A Dark_camera_buffer_listener_adapter_impl.cpp29 void ArkCameraBufferListenerAdapterImpl::OnBufferAvailable(ArkWebRefPtr<ArkCameraSurfaceAdapter> surface, in OnBufferAvailable() argument
32 if (!surface || !buffer || !rotationInfo) { in OnBufferAvailable()
36 return real_->OnBufferAvailable(std::make_shared<ArkCameraSurfaceAdapterWrapper>(surface), in OnBufferAvailable()
H A Dark_media_codec_encoder_adapter_wrapper.cpp103 ArkWebRefPtr<ArkProducerSurfaceAdapter> surface = ctocpp_->CreateInputSurface(); in CreateInputSurface() local
104 if (CHECK_REF_PTR_IS_NULL(surface)) { in CreateInputSurface()
108 return std::make_shared<ArkProducerSurfaceAdapterWrapper>(surface); in CreateInputSurface()
/base/web/webview/ohos_nweb/include/
H A Dnweb_surface_adapter.h21 #include <surface.h>
35 std::shared_ptr<NWebCreateInfoImpl> GetCreateInfo(sptr<Surface> surface,
43 sptr<SurfaceBuffer> RequestBuffer(sptr<Surface> surface, uint32_t width, uint32_t height);
45 bool FlushBuffer(sptr<Surface> surface, sptr<SurfaceBuffer> surfaceBuffer, uint32_t width, uint32_t height);
H A Dnweb_adapter_common.h20 #include <surface.h>
H A Dnweb_enhance_surface_adapter.h21 #include <surface.h>
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_camera_buffer_listener_adapter_wrapper.cpp31 void ArkCameraBufferListenerAdapterWrapper::OnBufferAvailable(std::shared_ptr<NWeb::CameraSurfaceAdapter> surface, in OnBufferAvailable() argument
35 if (!surface || !buffer || !rotationInfo) { in OnBufferAvailable()
39 ctocpp_->OnBufferAvailable(new ArkCameraSurfaceAdapterImpl(surface), new ArkCameraSurfaceBufferAdapterImpl(buffer), in OnBufferAvailable()
H A Dark_media_codec_encoder_adapter_impl.cpp85 std::shared_ptr<NWeb::ProducerSurfaceAdapter> surface = real_->CreateInputSurface(); in CreateInputSurface() local
86 if (CHECK_SHARED_PTR_IS_NULL(surface)) { in CreateInputSurface()
90 return new ArkProducerSurfaceAdapterImpl(surface); in CreateInputSurface()
H A Dark_camera_buffer_listener_adapter_wrapper.h29 void OnBufferAvailable(std::shared_ptr<NWeb::CameraSurfaceAdapter> surface,
/base/web/webview/test/fuzztest/ohos_adapter/aafwk_adapter/aafwkbrowserclientadapter_fuzzer/
H A Daafwkbrowserclientadapter_fuzzer.cpp45 void PassSurface(sptr<Surface> surface, int64_t surface_id);
64 void MockBrowserClient::PassSurface(sptr<Surface> surface, int64_t surface_id) in PassSurface() argument
66 (void)surface; in PassSurface()
85 sptr<Surface> surface; in AafwkBrowserClientAdapterFuzzTest() local
87 client->PassSurface(surface, surface_id); in AafwkBrowserClientAdapterFuzzTest()
/base/web/webview/ohos_adapter/aafwk_adapter/src/
H A Daafwk_browser_client_adapter_impl.cpp25 #include "surface.h"
27 #include "foundation/graphic/graphic_surface/interfaces/inner_api/surface/window.h"
28 #include "foundation/graphic/graphic_surface/surface/include/native_window.h"
62 sptr<IRemoteObject> surface = reply.ReadRemoteObject(); in QueryRenderSurface() local
63 return surface; in QueryRenderSurface()
92 void BrowserClient::PassSurface(sptr<Surface> surface, int64_t surface_id) in PassSurface() argument
100 if (surface == nullptr) { in PassSurface()
103 data.WriteRemoteObject(surface->GetProducer()->AsObject()); in PassSurface()
157 sptr<Surface> surface = Surface::CreateSurfaceAsProducer(bufferProducer); in QueryRenderSurface() local
158 OHNativeWindow* window = ::CreateNativeWindowFromSurface(&surface); in QueryRenderSurface()
197 sptr<Surface> surface = utils->GetSurface(surface_id); PassSurface() local
[all...]
H A Daafwk_browser_host_impl.cpp25 #include "foundation/graphic/graphic_surface/interfaces/inner_api/surface/window.h"
26 #include "foundation/graphic/graphic_surface/surface/include/native_window.h"
79 // call child class, get surface void* from kelnel in HandleQueryRenderSurface()
107 sptr<Surface> surface = Surface::CreateSurfaceAsProducer(bufferProducer); in HandlePassSurface() local
109 PassSurface(surface, surface_id); in HandlePassSurface()
133 sptr<Surface> surface = ohNativeWindow->surface; in QueryRenderSurface() local
135 return surface->GetProducer()->AsObject(); in QueryRenderSurface()
137 WVLOG_E("browser host impl get surface from kernel failed"); in QueryRenderSurface()
149 void AafwkBrowserHostImpl::PassSurface(sptr<Surface> surface, int64_ argument
[all...]
/base/useriam/face_auth/test/fuzztest/faceauthservice_fuzzer/
H A Dface_auth_service_fuzzer.cpp48 auto surface = IConsumerSurface::Create(); in FuzzSetBufferProducer() local
49 if (surface == nullptr) { in FuzzSetBufferProducer()
53 bufferProducer = surface->GetProducer(); in FuzzSetBufferProducer()
/base/update/updater/services/ui/driver/
H A Dfbdev_driver.cpp124 void FbdevDriver::GetGrSurface(GrSurface &surface) in GetGrSurface() argument
126 surface.height = static_cast<int>(vinfo_.yres); in GetGrSurface()
127 surface.rowBytes = finfo_.line_length; in GetGrSurface()
128 surface.pixelBytes = vinfo_.bits_per_pixel / 8; // 8: byte bit len in GetGrSurface()
129 surface.width = static_cast<int>(surface.rowBytes / surface.pixelBytes); in GetGrSurface()
H A Dsurface_dev.cpp98 void SurfaceDev::GetScreenSize(uint16_t &w, uint16_t &h, GrSurface &surface) const in GetScreenSize()
101 drv_->GetGrSurface(surface); in GetScreenSize()
103 w = surface.width; in GetScreenSize()
104 h = surface.height; in GetScreenSize()
H A Dgraphic_engine.cpp40 __attribute__((weak)) void PostInitSurfDev(std::unique_ptr<SurfaceDev> &surfDev, GrSurface &surface) in PostInitSurfDev() argument
56 GrSurface surface {}; in Init()
57 sfDev_->GetScreenSize(width_, height_, surface); in Init()
58 PostInitSurfDev(sfDev_, surface); in Init()
H A Dgraphic_drv.h32 virtual void GetGrSurface(GrSurface &surface) = 0;
/base/web/webview/test/unittest/nweb_surface_adapter_test/
H A Dnweb_surface_adapter_test.cpp105 sptr<Surface> surface = nullptr; in HWTEST_F() local
106 surfaceAdapter.GetCreateInfo(surface, GetInitArgs(), DEFAULT_WIDTH, DEFAULT_HEIGHT); in HWTEST_F()
170 sptr<Surface> surface = nullptr; in HWTEST_F() local
171 bool result = surfaceAdapter.FlushBuffer(surface, g_surfaceBuffer, DEFAULT_WIDTH, DEFAULT_WIDTH); in HWTEST_F()
173 wptr<Surface> surfaceWeak(surface); in HWTEST_F()
/base/web/webview/test/fuzztest/ohos_adapter/aafwk_adapter/aafwkbrowserhost_fuzzer/
H A Daafwkbrowserhost_fuzzer.cpp50 sptr<Surface> surface; in AafwkBrowserHostFuzzTest() local
51 host->PassSurface(surface, surface_id); in AafwkBrowserHostFuzzTest()
/base/telephony/call_manager/test/fuzztest/controlcamera_fuzzer/
H A Dcontrolcamera_fuzzer.cpp63 auto surface = SurfaceUtils::GetInstance()->GetSurface(tmpSurfaceId); in SetPreviewWindow() local
64 if (surface != nullptr) { in SetPreviewWindow()
65 sptr<IBufferProducer> producer = surface->GetProducer(); in SetPreviewWindow()
95 auto surface = SurfaceUtils::GetInstance()->GetSurface(tmpSurfaceId); in SetDisplayWindow() local
96 if (surface != nullptr) { in SetDisplayWindow()
97 sptr<IBufferProducer> producer = surface->GetProducer(); in SetDisplayWindow()
/base/telephony/call_manager/services/call/include/
H A Dnet_call_base.h25 #include "surface.h"
52 virtual int32_t SetPreviewWindow(std::string &surfaceId, sptr<Surface> surface) = 0;
53 virtual int32_t SetDisplayWindow(std::string &surfaceId, sptr<Surface> surface) = 0;
/base/telephony/cellular_call/services/control/include/
H A Dims_video_call_control.h24 #include "surface.h"
49 * @param surface The surface object of window
52 int32_t SetPreviewWindow(int32_t slotId, int32_t callIndex, const std::string &surfaceID, sptr<Surface> surface);
60 * @param surface The surface object of window
63 int32_t SetDisplayWindow(int32_t slotId, int32_t callIndex, const std::string &surfaceID, sptr<Surface> surface);
/base/telephony/call_manager/services/video/include/
H A Dvideo_control_manager.h25 #include "surface.h"
34 int32_t SetPreviewWindow(int32_t callId, std::string &surfaceId, sptr<Surface> surface);
35 int32_t SetDisplayWindow(int32_t callId, std::string &surfaceId, sptr<Surface> surface);

Completed in 7 milliseconds

1234