mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2025-02-23 05:52:19 +00:00
!16915 fix tdd
Merge pull request !16915 from 屑屑屑/OpenHarmony-5.0.1-Release
This commit is contained in:
commit
3998861ded
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user