Package io.flutter.plugin.platform
Class SurfaceTexturePlatformViewRenderTarget
- java.lang.Object
-
- io.flutter.plugin.platform.SurfaceTexturePlatformViewRenderTarget
-
- All Implemented Interfaces:
PlatformViewRenderTarget
public class SurfaceTexturePlatformViewRenderTarget extends Object implements PlatformViewRenderTarget
-
-
Constructor Summary
Constructors Constructor Description SurfaceTexturePlatformViewRenderTarget(TextureRegistry.SurfaceTextureEntry surfaceTextureEntry)
Implementation of PlatformViewRenderTarget
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Surface
createSurface()
int
getHeight()
long
getId()
Surface
getSurface()
int
getWidth()
boolean
isReleased()
Canvas
lockHardwareCanvas()
void
release()
void
resize(int width, int height)
void
unlockCanvasAndPost(Canvas canvas)
-
-
-
Constructor Detail
-
SurfaceTexturePlatformViewRenderTarget
public SurfaceTexturePlatformViewRenderTarget(TextureRegistry.SurfaceTextureEntry surfaceTextureEntry)
Implementation of PlatformViewRenderTarget
-
-
Method Detail
-
createSurface
protected Surface createSurface()
-
lockHardwareCanvas
public Canvas lockHardwareCanvas()
- Specified by:
lockHardwareCanvas
in interfacePlatformViewRenderTarget
-
unlockCanvasAndPost
public void unlockCanvasAndPost(Canvas canvas)
- Specified by:
unlockCanvasAndPost
in interfacePlatformViewRenderTarget
-
resize
public void resize(int width, int height)
- Specified by:
resize
in interfacePlatformViewRenderTarget
-
getWidth
public int getWidth()
- Specified by:
getWidth
in interfacePlatformViewRenderTarget
-
getHeight
public int getHeight()
- Specified by:
getHeight
in interfacePlatformViewRenderTarget
-
getId
public long getId()
- Specified by:
getId
in interfacePlatformViewRenderTarget
-
isReleased
public boolean isReleased()
- Specified by:
isReleased
in interfacePlatformViewRenderTarget
-
release
public void release()
- Specified by:
release
in interfacePlatformViewRenderTarget
-
getSurface
public Surface getSurface()
- Specified by:
getSurface
in interfacePlatformViewRenderTarget
-
-