Home
last modified time | relevance | path

Searched refs:surfaceParams (Results 1 – 19 of 19) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_surface_render_node_drawable.cpp303 if (!surfaceParams) { in OnDraw()
333 surfaceParams->GetGlobalAlpha(), surfaceParams->GetId()); in OnDraw()
353 surfaceParams->GetGlobalAlpha(), surfaceParams->GetId()); in OnDraw()
370 surfaceParams->GetId(), name_.c_str(), surfaceParams->GetOcclusionVisible(), in OnDraw()
374 surfaceParams->GetFirstLevelNodeId(), surfaceParams->GetUifirstRootNodeId(), nodeId_); in OnDraw()
410 (surfaceParams->GetVisibleRegion().Area() == surfaceParams->GetOpaqueRegion().Area()); in OnDraw()
432 !surfaceParams->IsSpherizeValid() && !surfaceParams->IsAttractionValid(); in OnDraw()
550 if (!surfaceParams) { in OnCapture()
718 …if (!(surfaceParams.HasSecurityLayer() || surfaceParams.HasSkipLayer() || surfaceParams.HasProtect… in CaptureSurface()
741 !surfaceParams.IsSpherizeValid() && !surfaceParams.IsAttractionValid(); in CaptureSurface()
[all …]
H A Drs_surface_render_node_drawable.h55 bool CheckIfSurfaceSkipInMirror(const RSSurfaceRenderParams& surfaceParams);
222 GraphicColorGamut GetAncestorDisplayColorGamut(const RSSurfaceRenderParams& surfaceParams);
223 …d DealWithSelfDrawingNodeBuffer(RSPaintFilterCanvas& canvas, RSSurfaceRenderParams& surfaceParams);
252 void CaptureSurface(RSPaintFilterCanvas& canvas, RSSurfaceRenderParams& surfaceParams);
256 RSSurfaceRenderParams& surfaceParams, Occlusion::Region& surfaceDirtyRegion) const;
259 bool HasCornerRadius(const RSSurfaceRenderParams& surfaceParams) const;
270 RSSurfaceRenderParams& surfaceParams, bool drawCacheSuccess);
277 bool DrawUIFirstCacheWithDma(RSPaintFilterCanvas& canvas, RSSurfaceRenderParams& surfaceParams);
280 const RSSurfaceRenderParams& surfaceParams, BufferDrawParam& params);
282 …void ClipHoleForSelfDrawingNode(RSPaintFilterCanvas& canvas, RSSurfaceRenderParams& surfaceParams);
[all …]
H A Drs_display_render_node_drawable.cpp357 auto surfaceParams = in HardCursorCreateLayer() local
359 if (!surfaceParams) { in HardCursorCreateLayer()
511 if (surfaceParams == nullptr) { in CheckAndUpdateFilterCacheOcclusion()
518 if (surfaceParams->IsMainWindowType()) { in CheckAndUpdateFilterCacheOcclusion()
1466 auto surfaceParams = in FindHardCursorNodes() local
1468 if (!surfaceParams) { in FindHardCursorNodes()
1524 if (surfaceParams == nullptr || !surfaceParams->GetHardwareEnabled()) { in FindHardwareEnabledNodes()
1529 auto buffer = surfaceParams->GetBuffer(); in FindHardwareEnabledNodes()
1543 auto surfaceParams = in FindHardwareEnabledNodes() local
1545 if (!surfaceParams) { in FindHardwareEnabledNodes()
[all …]
H A Drs_ui_first_surface_render_node_drawable.cpp117 auto surfaceParams = static_cast<RSSurfaceRenderParams*>(GetRenderParams().get()); in GetGravityTranslate() local
118 if (!surfaceParams) { in GetGravityTranslate()
122 auto gravity = surfaceParams->GetUIFirstFrameGravity(); in GetGravityTranslate()
123 float boundsWidth = surfaceParams->GetCacheSize().x_; in GetGravityTranslate()
124 float boundsHeight = surfaceParams->GetCacheSize().y_; in GetGravityTranslate()
429 auto surfaceParams = static_cast<RSSurfaceRenderParams*>(GetRenderParams().get()); in IsCurFrameStatic() local
430 if (!surfaceParams) { in IsCurFrameStatic()
435surfaceParams->GetSurfaceCacheContentStatic(), surfaceParams->GetName().c_str(), surfaceParams->Ge… in IsCurFrameStatic()
436 return surfaceParams->GetSurfaceCacheContentStatic(); in IsCurFrameStatic()
H A Drs_dma_buffer_surface_render_node_drawable.cpp146 RSPaintFilterCanvas& canvas, RSSurfaceRenderParams& surfaceParams) in DrawUIFirstCacheWithDma() argument
149 if (surfaceParams.GetHardwareEnabled()) { in DrawUIFirstCacheWithDma()
153 RS_TRACE_NAME_FMT("HandleSubThreadNode wait %" PRIu64 "", surfaceParams.GetId()); in DrawUIFirstCacheWithDma()
154 RSSubThreadManager::Instance()->WaitNodeTask(surfaceParams.GetId()); in DrawUIFirstCacheWithDma()
H A Drs_canvas_drawing_render_node_drawable.cpp111 auto surfaceParams = params->GetCanvasDrawingSurfaceParams(); in OnDraw() local
112 if (!InitSurface(surfaceParams.width, surfaceParams.height, *paintFilterCanvas)) { in OnDraw()
H A Drs_display_render_node_drawable.h180 … static void CheckFilterCacheFullyCovered(RSSurfaceRenderParams& surfaceParams, RectI screenRect);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/drawable/
H A Drs_surface_render_node_drawable_test.cpp117 ASSERT_NE(surfaceParams, nullptr);
139 ASSERT_NE(surfaceParams, nullptr);
158 ASSERT_NE(surfaceParams, nullptr);
181 ASSERT_NE(surfaceParams, nullptr);
201 ASSERT_NE(surfaceParams, nullptr);
229 ASSERT_NE(surfaceParams, nullptr);
258 ASSERT_NE(surfaceParams, nullptr);
282 ASSERT_NE(surfaceParams, nullptr);
312 ASSERT_NE(surfaceParams, nullptr);
360 ASSERT_NE(surfaceParams, nullptr);
[all …]
H A Drs_dma_buffer_surface_render_node_drawable_test.cpp146 auto surfaceParams = static_cast<RSSurfaceRenderParams*>(surfaceDrawable_->renderParams_.get()); variable
147 ASSERT_NE(surfaceParams, nullptr);
148 bool result = surfaceDrawable_->DrawUIFirstCacheWithDma(*canvas_, *surfaceParams);
152 result = surfaceDrawable_->DrawUIFirstCacheWithDma(*canvas_, *surfaceParams);
155 result = surfaceDrawable_->DrawUIFirstCacheWithDma(*canvas_, *surfaceParams);
160 result = surfaceDrawable_->DrawUIFirstCacheWithDma(*canvas_, *surfaceParams);
163 surfaceParams->isHardwareEnabled_ = true;
164 result = surfaceDrawable_->DrawUIFirstCacheWithDma(*canvas_, *surfaceParams);
H A Drs_display_render_node_drawable_test.cpp518 ASSERT_NE(surfaceParams, nullptr);
525 surfaceParams->windowInfo_.isMainWindowType_ = false;
528 surfaceParams->windowInfo_.isMainWindowType_ = true;
544 auto surfaceParams = std::make_unique<RSSurfaceRenderParams>(DEFAULT_SURFACE_NODE_ID); variable
545 ASSERT_NE(surfaceParams, nullptr);
546 surfaceParams->visibleFilterChild_ = {DEFAULT_RENDER_NODE_ID};
557 RSDisplayRenderNodeDrawable::CheckFilterCacheFullyCovered(*surfaceParams, screenRect);
560 surfaceParams->isTransparent_ = true;
561 RSDisplayRenderNodeDrawable::CheckFilterCacheFullyCovered(*surfaceParams, screenRect);
564 RSDisplayRenderNodeDrawable::CheckFilterCacheFullyCovered(*surfaceParams, screenRect);
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_surface_render_node.cpp409 if (surfaceParams) { in SetIsSubSurfaceNode()
497 if (surfaceParams) { in SetIsNodeToBeCaptured()
767 if (surfaceParams == nullptr) { in SetForceHardwareAndFixRotation()
791 if (surfaceParams) { in SetInFixedRotation()
1075 if (surfaceParams == nullptr) { in SetLayerTop()
1098 if (surfaceParams) { in SetHardCursorStatus()
2779 if (surfaceParams == nullptr) { in UpdatePartialRenderParams()
2798 if (surfaceParams == nullptr) { in UpdateExtendVisibleRegion()
2818 if (surfaceParams == nullptr) { in UpdateRenderParams()
2841 surfaceParams->name_= name_; in UpdateRenderParams()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/dfx/
H A Drs_dirty_rects_dfx.cpp318 RSSurfaceRenderParams& surfaceParams) const in DrawSurfaceOpaqueRegionForDFX()
320 const auto& opaqueRegionRects = surfaceParams.GetOpaqueRegion().GetRegionRects(); in DrawSurfaceOpaqueRegionForDFX()
348 auto surfaceParams = static_cast<RSSurfaceRenderParams*>((*it)->GetRenderParams().get()); in DrawAllSurfaceOpaqueRegionForDFX() local
349 if (surfaceParams && surfaceParams->IsMainWindowType()) { in DrawAllSurfaceOpaqueRegionForDFX()
350 DrawSurfaceOpaqueRegionForDFX(canvas, *surfaceParams); in DrawAllSurfaceOpaqueRegionForDFX()
366 auto& surfaceParams = surfaceDrawable->GetRenderParams(); in DrawTargetSurfaceDirtyRegionForDFX() local
367 if (UNLIKELY(!surfaceParams) || !surfaceParams->IsAppWindow()) { in DrawTargetSurfaceDirtyRegionForDFX()
380 const auto visibleRects = surfaceParams->GetVisibleRegion().GetRegionRects(); in DrawTargetSurfaceDirtyRegionForDFX()
401 if (surfaceParams == nullptr || !surfaceParams->IsAppWindow()) { in DrawTargetSurfaceVisibleRegionForDFX()
404 if (CheckIfSurfaceTargetedForDFX(surfaceParams->GetName())) { in DrawTargetSurfaceVisibleRegionForDFX()
[all …]
H A Drs_dirty_rects_dfx.h70 …SurfaceOpaqueRegionForDFX(RSPaintFilterCanvas& canvas, RSSurfaceRenderParams& surfaceParams) const;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_util.cpp70 if (surfaceParams == nullptr || !surfaceParams->IsAppWindow()) { in MergeDirtyHistoryForDrawable()
78 surfaceParams->GetId()); in MergeDirtyHistoryForDrawable()
111 if (!surfaceParams->IsAppWindow() || surfaceParams->GetDstRect().IsEmpty()) { in MergeVisibleDirtyRegion()
156 if (surfaceParams == nullptr || !surfaceParams->IsAppWindow()) { in MergeDirtyHistoryInVirtual()
160 surfaceParams->GetId()); in MergeDirtyHistoryInVirtual()
180 if (!surfaceParams) { in MergeVisibleDirtyRegionInVirtual()
184 if (!surfaceParams->IsAppWindow() || surfaceParams->GetDstRect().IsEmpty() || in MergeVisibleDirtyRegionInVirtual()
186 surfaceParams->GetIsSkipLayer()) { in MergeVisibleDirtyRegionInVirtual()
212 if (!surfaceParams) { in SetAllSurfaceDrawableGlobalDityRegion()
216 if (!surfaceParams->IsMainWindowType()) { in SetAllSurfaceDrawableGlobalDityRegion()
[all …]
H A Drs_uni_render_thread.cpp365 auto surfaceParams = static_cast<RSSurfaceRenderParams*>(params.get()); in ReleaseSelfDrawingNodeBuffer() local
366 if (UNLIKELY(!surfaceParams)) { in ReleaseSelfDrawingNodeBuffer()
369 … bool needRelease = !surfaceParams->GetHardwareEnabled() || !surfaceParams->GetLayerCreated(); in ReleaseSelfDrawingNodeBuffer()
370 if (needRelease && surfaceParams->GetLastFrameHardwareEnabled()) { in ReleaseSelfDrawingNodeBuffer()
371 surfaceParams->releaseInHardwareThreadTaskNum_ = RELEASE_IN_HARDWARE_THREAD_TASK_NUM; in ReleaseSelfDrawingNodeBuffer()
376 if (surfaceParams->releaseInHardwareThreadTaskNum_ > 0) { in ReleaseSelfDrawingNodeBuffer()
377 surfaceParams->releaseInHardwareThreadTaskNum_--; in ReleaseSelfDrawingNodeBuffer()
382 useReleaseFence = surfaceParams->GetLastFrameHardwareEnabled(), in ReleaseSelfDrawingNodeBuffer()
391 if (surfaceParams->releaseInHardwareThreadTaskNum_ > 0) { in ReleaseSelfDrawingNodeBuffer()
393 surfaceParams->releaseInHardwareThreadTaskNum_--; in ReleaseSelfDrawingNodeBuffer()
H A Drs_uifirst_manager.cpp128 … auto surfaceParams = static_cast<RSSurfaceRenderParams*>(drawable->GetRenderParams().get()); in ResetUifirstNode() local
129 … if (surfaceParams && surfaceParams->GetUifirstNodeEnableParam() == MultiThreadCacheType::NONE) { in ResetUifirstNode()
130 RS_TRACE_NAME_FMT("ResetUifirstNode clearCache id:%llu", surfaceParams->GetId()); in ResetUifirstNode()
337 auto surfaceParams = static_cast<RSSurfaceRenderParams*>(drawable->GetRenderParams().get()); in SyncHDRDisplayParam() local
338 if (!surfaceParams || !surfaceParams->GetAncestorDisplayNode().lock()) { in SyncHDRDisplayParam()
341 …auto ancestor = surfaceParams->GetAncestorDisplayNode().lock()->ReinterpretCastTo<RSDisplayRenderN… in SyncHDRDisplayParam()
357 surfaceParams->GetBrightnessRatio()); in SyncHDRDisplayParam()
407 auto surfaceParams = static_cast<RSSurfaceRenderParams*>(drawable->GetRenderParams().get()); in DoPurgePendingPostNodes() local
409 if (!surfaceParams || !node) { in DoPurgePendingPostNodes()
423 RS_OPTIONAL_TRACE_NAME_FMT("Purge node name %s", surfaceParams->GetName().c_str()); in DoPurgePendingPostNodes()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/parallel_render/
H A Drs_sub_thread.cpp265 auto surfaceParams = static_cast<RSSurfaceRenderParams*>(nodeDrawable->GetRenderParams().get()); in DrawableCache() local
266 if (UNLIKELY(!surfaceParams)) { in DrawableCache()
271surfaceParams->GetFirstLevelNodeId(), surfaceParams->GetUifirstRootNodeId(), surfaceParams->GetId(… in DrawableCache()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/pipeline/
H A Drs_uifirst_manager_test.cpp99 …auto surfaceParams = static_cast<RSSurfaceRenderParams*>(childNode2->GetStagingRenderParams().get(… variable
100 ASSERT_NE(surfaceParams, nullptr);
101 ASSERT_FALSE(surfaceParams->GetParentUifirstNodeEnableParam());
103 surfaceParams = static_cast<RSSurfaceRenderParams*>(childNode3->GetStagingRenderParams().get());
104 ASSERT_NE(surfaceParams, nullptr);
105 ASSERT_TRUE(surfaceParams->GetParentUifirstNodeEnableParam());
H A Drs_uni_render_composer_adapter_test.cpp106 auto surfaceParams = static_cast<RSSurfaceRenderParams*>(params.get()); variable
107 surfaceParams->SetBuffer(surfaceNode->GetRSSurfaceHandler()->GetBuffer(),
114 surfaceParams->SetLayerInfo(layerInfo);
144 auto surfaceParams = static_cast<RSSurfaceRenderParams*>(params.get()); variable
145 surfaceParams->SetBuffer(surfaceNode->GetRSSurfaceHandler()->GetBuffer(),