Merge pull request !16915 from 屑屑屑/OpenHarmony-5.0.1-Release
This commit is contained in:
openharmony_ci 2024-11-07 15:27:49 +00:00 committed by Gitee
commit 3998861ded
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 23 deletions

View File

@ -158,7 +158,7 @@ HWTEST(RSCanvasRenderNodeDrawableTest, OnCaptureTest003, TestSize.Level1)
drawable->renderParams_ = std::make_unique<RSRenderParams>(nodeId);
drawable->renderParams_->shouldPaint_ = true;
drawable->renderParams_->contentEmpty_ = false;
RSUniRenderThread::Instance().Sync(std::make_unique<RSRenderThreadParams>());
RSRenderThreadParamsManager::Instance().renderThreadParams_ = std::make_unique<RSRenderThreadParams>();
ASSERT_TRUE(RSUniRenderThread::Instance().GetRSRenderThreadParams());
RSUniRenderThread::Instance().GetRSRenderThreadParams()->SetRootIdOfCaptureWindow(1);
RSUniRenderThread::Instance().GetRSRenderThreadParams()->SetHasCaptureImg(true);

View File

@ -333,28 +333,6 @@ HWTEST_F(RSRenderNodeDrawableTest, AfterDrawCache, TestSize.Level1)
drawable->AfterDrawCache(cacheStragy, canvas, params, isOpincDropNodeExt, opincRootTotalCount);
}
/**
@tc.name: AfterDrawCacheWithScreen
@tc.desc: Test AfterDrawCacheWithScreen delay cache
@tc.type: FUNC
@tc.require: issueIAL4RE
*/
HWTEST(RSRenderNodeDrawableTest, AfterDrawCacheWithScreen, TestSize.Level1)
{
auto drawable = RSRenderNodeDrawableTest::CreateDrawable();
Drawing::Canvas canvas;
RSRenderParams params(RSRenderNodeDrawableTest::id);
bool isOpincDropNodeExt = true;
int opincRootTotalCount = 0;
drawable->rootNodeStragyType_ = NodeStrategyType::OPINC_AUTOCACHE;
NodeStrategyType cacheStragy = NodeStrategyType::CACHE_NONE;
drawable->recordState_ = NodeRecordState::RECORD_CACHING;
RectI absRect = {10, 10, 10, 10};
params.SetAbsDrawRect(absRect);
drawable->AfterDrawCache(cacheStragy, canvas, params, isOpincDropNodeExt, opincRootTotalCount);
}
/**
* @tc.name: DrawAutoCache
* @tc.desc: Test result of DrawAutoCache