Skip to content

[hcpp] HCPP platform view not fully clearing when scrolling off screen #175882

@gmackall

Description

@gmackall

See the video. Given that the size of the portion that isn't cleared is dependent on scroll speed, I'd suspect this is because we aren't pushing an update for the final frame where the platform view is gone.

Perhaps we have a bug here?


Do we push updates to the platform view on frames n-m, n-(m-1), ..., n-1, but forget to push updates on frame n when the PV is fully off screen? It sort of looks like that, based on

  if (!FrameHasPlatformLayers()) {
    frame->Submit();
    // If the previous frame had platform views, hide the overlay surface.
    HideOverlayLayerIfNeeded();
    jni_facade_->applyTransaction();
    return;
  }

Isn't that only maybe hiding the (flutter) overlay on top of the platform view? Not actually sure what frame->Submit(); does.

hcpp_not_clearing.mp4

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listplatform-views: hcppIssues which affect the HCPP platform views backendteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions