Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

blasten
Copy link

@blasten blasten commented Jun 26, 2020

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.

  • I read the contributor guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the C++, Objective-C, Java style guides for the engine.
  • I read the tree hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation.
  • All existing and new tests are passing.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Did any tests fail when you ran them? Please read handling breaking changes.

@blasten blasten force-pushed the on_display_platform_view branch from b3fdb1d to 26fc606 Compare June 26, 2020 23:43
@blasten blasten requested a review from jason-simmons June 26, 2020 23:43
@flutter flutter deleted a comment from fluttergithubbot Jun 26, 2020
Emmanuel Garcia added 2 commits June 26, 2020 16:46
Copy link
Member

@jason-simmons jason-simmons left a 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
Copy link
Member

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"

Copy link
Author

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
Copy link
Member

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@blasten blasten requested a review from jason-simmons June 27, 2020 00:00
@blasten
Copy link
Author

blasten commented Jun 27, 2020

Merging. "Mac iOS Engine" failure is already fixed on master.

@blasten blasten added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Jun 27, 2020
@fluttergithubbot fluttergithubbot merged commit a28b7f0 into flutter:master Jun 27, 2020
@blasten blasten deleted the on_display_platform_view branch June 27, 2020 04:47
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 29, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 29, 2020
jonahwilliams pushed a commit to flutter/flutter that referenced this pull request Jun 29, 2020
* 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)
@xster
Copy link
Member

xster commented Jul 8, 2020

go/tested-engine-prs nag :)
Please add tests to PRs with code

@blasten
Copy link
Author

blasten commented Jul 8, 2020

@xster these changes are tested via the scenario test app and e2e driver tests. Unit tests were out of scope in this change.

mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
* 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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes platform-android waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement onDisplayPlatformView JNI
5 participants