-
Notifications
You must be signed in to change notification settings - Fork 6k
Position overlay layer views in PlatformViewsController.onDisplayOverlaySurface #19295
Position overlay layer views in PlatformViewsController.onDisplayOverlaySurface #19295
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
}, | ||
1000); | ||
public void acquireLatestImageViewFrame() { | ||
flutterImageView.acquireLatestImage(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nit: flutterImageView is nullable
int key = overlayLayerViews.keyAt(i); | ||
FlutterImageView overlayView = overlayLayerViews.valueAt(i); | ||
if (currentFrameUsedOverlayLayerIds.contains(key)) { | ||
overlayView.acquireLatestImage(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Android team suggested to acquire the image off the UI thread. This can be done later, just fyi.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for the one above, but I guess that could go in a single PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM + nit
c70fce4
to
0d9339b
Compare
…playOverlaySurface (flutter/engine#19295)
No description provided.