mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] provide cull rect to Canvas in GL/Vulakn impeller backend. (flutter/engine#43961)
This was missing compared to the metal version. Doesn't matter on flutter/gallery but might matter elsewhere once platform views are working.
This commit is contained in:
parent
cf07a16665
commit
79237f839b
@ -108,8 +108,8 @@ std::unique_ptr<SurfaceFrame> GPUSurfaceGLImpeller::AcquireFrame(
|
||||
|
||||
auto cull_rect =
|
||||
surface->GetTargetRenderPassDescriptor().GetRenderTargetSize();
|
||||
|
||||
impeller::DlDispatcher impeller_dispatcher;
|
||||
impeller::Rect dl_cull_rect = impeller::Rect::MakeSize(cull_rect);
|
||||
impeller::DlDispatcher impeller_dispatcher(dl_cull_rect);
|
||||
display_list->Dispatch(
|
||||
impeller_dispatcher,
|
||||
SkIRect::MakeWH(cull_rect.width, cull_rect.height));
|
||||
|
||||
@ -74,8 +74,8 @@ std::unique_ptr<SurfaceFrame> GPUSurfaceVulkanImpeller::AcquireFrame(
|
||||
|
||||
auto cull_rect =
|
||||
surface->GetTargetRenderPassDescriptor().GetRenderTargetSize();
|
||||
|
||||
impeller::DlDispatcher impeller_dispatcher;
|
||||
impeller::Rect dl_cull_rect = impeller::Rect::MakeSize(cull_rect);
|
||||
impeller::DlDispatcher impeller_dispatcher(dl_cull_rect);
|
||||
display_list->Dispatch(
|
||||
impeller_dispatcher,
|
||||
SkIRect::MakeWH(cull_rect.width, cull_rect.height));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user