!16314 fix arkuix componentsnapshot issue

Merge pull request !16314 from lmy/arkuix_snapshot
This commit is contained in:
openharmony_ci 2024-10-26 06:35:25 +00:00 committed by Gitee
commit 97c3b889e3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -84,6 +84,8 @@ std::shared_ptr<Media::PixelMap> RSDividedUICapture::TakeLocalCapture()
return nullptr;
}
auto canvas = std::make_shared<RSPaintFilterCanvas>(drSurface.get());
canvas->ResetMatrix();
canvas->Clear(Drawing::Color::COLOR_TRANSPARENT);
#endif
drawCallList->Playback(*canvas);
return pixelmap;