Surface

Class of android.view · Surface.java · Android's reference

public class Surface implements android.os.Parcelable

A window's surface: its handle in the runtime's renderer.

Nested types

Fields

public static final int ROTATION_0 = 0 source
public static final int ROTATION_90 = 1 source
public static final int ROTATION_180 = 2 source
public static final int ROTATION_270 = 3 source

Constructors

public Surface() empty body source
public Surface(android.graphics.SurfaceTexture surfaceTexture) source

a surface whose frames go to the texture

Methods

public boolean isWindow() source
public int width() source
public int height() source
public boolean isValid() source
public void release() source
public android.graphics.Canvas lockHardwareCanvas() source

A canvas whose drawing goes nowhere: no consumer takes this surface's frames

public android.graphics.Canvas lockCanvas(android.graphics.Rect inOutDirty) source
public void unlockCanvasAndPost(android.graphics.Canvas canvas) empty body source
public int describeContents() source
public void writeToParcel(android.os.Parcel dest, int flags) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.