mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-23 23:20:32 +00:00
回退冗余判断代码
Signed-off-by: lw19901203 <liuwei793@h-partners.com>
This commit is contained in:
parent
de0270eebf
commit
bef8565e4f
@ -573,10 +573,6 @@ Drawing::RecordingCanvas::DrawFunc RSBackgroundEffectDrawable::CreateDrawFunc()
|
||||
{
|
||||
auto ptr = std::static_pointer_cast<const RSBackgroundEffectDrawable>(shared_from_this());
|
||||
return [ptr](Drawing::Canvas* canvas, const Drawing::Rect* rect) {
|
||||
if (canvas == nullptr || rect == nullptr) {
|
||||
RS_LOGE("RSBackgroundEffectDrawable::DrawBackgroundEffect data error");
|
||||
return;
|
||||
}
|
||||
auto paintFilterCanvas = static_cast<RSPaintFilterCanvas*>(canvas);
|
||||
Drawing::AutoCanvasRestore acr(*canvas, true);
|
||||
paintFilterCanvas->ClipRect(*rect);
|
||||
|
Loading…
Reference in New Issue
Block a user