-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#37107Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: platform-viewsEmbedding Android/iOS views in Flutter appsEmbedding Android/iOS views in Flutter appsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
Description
Hi, when using platformviews, getLocalClipBounds should return the bounds of the platformview, not the bounds of the canvas.
// SkBigPicture.cpp
const bool useBBH = !canvas->getLocalClipBounds().contains(this->cullRect());
When I did clipRect as below, it became correct.
SkCanvas* overlay_canvas = frame->SkiaCanvas();
overlay_canvas->clipRect(rect);
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: platform-viewsEmbedding Android/iOS views in Flutter appsEmbedding Android/iOS views in Flutter appsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.