Skip to content

Implement onDisplayOverlaySurface JNI #60150

@blasten

Description

@blasten

Overlay surfaces are indexed by the id returned from createOverlaySurface(). When onDisplayOverlaySurface() is called, the overlay surface must be sized and position accordingly.

Their Z position is based on the onDisplayOverlaySurface() call order. For example, consider:

1. onBeginFrame()
2. onDisplayPlatformView(/*id=*/ 0, x, y, width, height)  // back view.
3. onDisplayOverlaySurface(/*id=*/ 2, x, y, width, height)
4. onDisplayPlatformView(/*id=*/ 1, x, y, width, height)
5. onDisplayOverlaySurface(/*id=*/ 0, x, y, width, height)
6  onDisplayOverlaySurface(/*id=*/ 1, x, y, width, height)  // front view
7. onEndFrame()

Metadata

Metadata

Assignees

Labels

a: platform-viewsEmbedding Android/iOS views in Flutter appsengineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions