Flutter Engine
The Flutter Engine
shell
platform
android
io
flutter
embedding
android
RenderMode.java
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
package
io.flutter.embedding.android;
6
7
/** Render modes for a Flutter UI. */
8
public
enum
RenderMode
{
9
/**
10
* {@code RenderMode}, which paints a Flutter UI to a {@link android.view.SurfaceView}. This mode
11
* has the best performance, but a Flutter UI in this mode cannot be positioned between 2 other
12
* Android {@code View}s in the z-index, nor can it be animated/transformed. Unless the special
13
* capabilities of a {@link android.graphics.SurfaceTexture} are required, developers should
14
* strongly prefer this render mode.
15
*/
16
surface
,
17
/**
18
* {@code RenderMode}, which paints a Flutter UI to a {@link android.graphics.SurfaceTexture}.
19
* This mode is not as performant as {@link #surface}, but a Flutter UI in this mode can be
20
* animated and transformed, as well as positioned in the z-index between 2+ other Android {@code
21
* Views}. Unless the special capabilities of a {@link android.graphics.SurfaceTexture} are
22
* required, developers should strongly prefer the {@link #surface} render mode.
23
*/
24
texture
,
25
/**
26
* {@code RenderMode}, which paints Paints a Flutter UI provided by an {@link
27
* android.media.ImageReader} onto a {@link android.graphics.Canvas}. This mode is not as
28
* performant as {@link RenderMode#surface}, but a {@code FlutterView} in this mode can handle
29
* full interactivity with a {@link io.flutter.plugin.platform.PlatformView}. Unless {@link
30
* io.flutter.plugin.platform.PlatformView}s are required developers should strongly prefer the
31
* {@link RenderMode#surface} render mode.
32
*/
33
image
34
}
io.flutter.embedding.android.RenderMode
Definition:
RenderMode.java:8
io.flutter.embedding.android.RenderMode.texture
texture
Definition:
RenderMode.java:24
io.flutter.embedding.android.RenderMode.surface
surface
Definition:
RenderMode.java:16
SkRecords::image
sk_sp< const SkImage > image
Definition:
SkRecords.h:269
Generated on Sun Jun 23 2024 21:55:09 for Flutter Engine by
1.9.4