Skip to content

Implement JNI methods for hybrid composition #58288

@blasten

Description

@blasten

Core Functionality

Helpers

  • - void onBeginFrame()
    Called at the beginning of the frame to initialize any data structure.

  • - void onEndFrame()
    Called at the end of the frame to clean up any state. For example, if a platform view isn't displayed in the current frame, then it could be deallocated. Depends on Rasterizer should always call EndFrame #60124

FlutterOverlaySurface

import android.view.Surface;

final public class FlutterOverlaySurface {
  @NonNull final private final Surface surface;
  final private final int id;

  public FlutterOverlaySurface(int id, @NonNull Surface surface) {
    this.id = id;
    this.surface = surface;
  }

  public int getId() {
    return id;
  }

  @NonNull
  public Surface getSurface() {
    return surface;
  }
}

Metadata

Metadata

Labels

engineflutter/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