-
Notifications
You must be signed in to change notification settings - Fork 6k
Implement onDisplayPlatformView #19344
Implement onDisplayPlatformView #19344
Conversation
b3fdb1d
to
26fc606
Compare
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
|
||
/** | ||
* The Flutter application could like dispose of an existing Android {@code View}, i.e., | ||
* platform view. | ||
* The Flutter application would like dispose of an existing Android {@code View} rendered in |
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.
typo: "would like to dispose"
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.
Done.
public long createVirtualDisplayForPlatformView( | ||
@NonNull PlatformViewsChannel.PlatformViewCreationRequest request) { | ||
// API level 20 is required for VirtualDisplay#setSurface which we use when resizing a | ||
// platform |
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.
typo: put "platform view" on one line
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.
Done.
Merging. "Mac iOS Engine" failure is already fixed on master. |
* 1ae95f7 Roll Skia from 318afe66e699 to 63a0a758ce14 (4 revisions) (flutter/engine#19335) * b1b9469 Manual roll of Dart e24733ebd1...63cf56d925 (flutter/engine#19337) * de68a7f Roll Skia from 63a0a758ce14 to f123f06aabd6 (9 revisions) (flutter/engine#19336) * 220a831 Move fuchsia/scenic integration behind #define (flutter/engine#19003) * de74f8a migrate web engine implementation to null-safe Dart (flutter/engine#19172) * 4cd3ec0 Fix broken mac/fuchsia compiles (flutter/engine#19339) * 77e9f94 Roll Dart SDK from e24733ebd16c to 243ad5427564 (5 revisions) (flutter/engine#19338) * 4333fc3 Roll Dart SDK from 243ad5427564 to 7fc61e77e225 (5 revisions) (flutter/engine#19342) * b3cfbd2 Roll Fuchsia Mac SDK from YGK_M... to l3tHO... (flutter/engine#19343) * a28b7f0 Implement onDisplayPlatformView (flutter/engine#19344) * 1a4f38f Roll Dart SDK from 7fc61e77e225 to 871f0ee31eb0 (4 revisions) (flutter/engine#19346) * 3d61564 Roll Fuchsia Linux SDK from _d0dW... to Y_dK2... (flutter/engine#19347) * 727a38d Roll Fuchsia Mac SDK from l3tHO... to SuveI... (flutter/engine#19348) * ccfa0e7 Roll Fuchsia Linux SDK from Y_dK2... to lgSTC... (flutter/engine#19349) * 2ff740e Roll Dart SDK from 871f0ee31eb0 to f91547d6dd45 (1 revision) (flutter/engine#19350) * 692dfb3 update compilation rules for null-safety (flutter/engine#19386) * 729ca5e Roll Fuchsia Linux SDK from lgSTC... to ScRia... (flutter/engine#19389)
go/tested-engine-prs nag :) |
@xster these changes are tested via the scenario test app and e2e driver tests. Unit tests were out of scope in this change. |
* 1ae95f7 Roll Skia from 318afe66e699 to 63a0a758ce14 (4 revisions) (flutter/engine#19335) * b1b9469 Manual roll of Dart e24733ebd1...63cf56d925 (flutter/engine#19337) * de68a7f Roll Skia from 63a0a758ce14 to f123f06aabd6 (9 revisions) (flutter/engine#19336) * 220a831 Move fuchsia/scenic integration behind #define (flutter/engine#19003) * de74f8a migrate web engine implementation to null-safe Dart (flutter/engine#19172) * 4cd3ec0 Fix broken mac/fuchsia compiles (flutter/engine#19339) * 77e9f94 Roll Dart SDK from e24733ebd16c to 243ad5427564 (5 revisions) (flutter/engine#19338) * 4333fc3 Roll Dart SDK from 243ad5427564 to 7fc61e77e225 (5 revisions) (flutter/engine#19342) * b3cfbd2 Roll Fuchsia Mac SDK from YGK_M... to l3tHO... (flutter/engine#19343) * a28b7f0 Implement onDisplayPlatformView (flutter/engine#19344) * 1a4f38f Roll Dart SDK from 7fc61e77e225 to 871f0ee31eb0 (4 revisions) (flutter/engine#19346) * 3d61564 Roll Fuchsia Linux SDK from _d0dW... to Y_dK2... (flutter/engine#19347) * 727a38d Roll Fuchsia Mac SDK from l3tHO... to SuveI... (flutter/engine#19348) * ccfa0e7 Roll Fuchsia Linux SDK from Y_dK2... to lgSTC... (flutter/engine#19349) * 2ff740e Roll Dart SDK from 871f0ee31eb0 to f91547d6dd45 (1 revision) (flutter/engine#19350) * 692dfb3 update compilation rules for null-safety (flutter/engine#19386) * 729ca5e Roll Fuchsia Linux SDK from lgSTC... to ScRia... (flutter/engine#19389)
Description
Implements onDisplayPlatformView
Related Issues
Fixes flutter/flutter#60140
Tests
I added the following tests: Scenario test app
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.Breaking Change
Did any tests fail when you ran them? Please read handling breaking changes.