Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
OffscreenSurface

Class OffscreenSurface

Hierarchy

java.lang.Object
     com.android.grafika.gles.EglSurfaceBase

Package
com.android.grafika.gles

Overview

Off-screen EGL surface (pbuffer).

It's good practice to explicitly release() the surface, preferably from a "finally" block.

Fields

Inherited Fields

From Class Fields
com.android.grafika.gles.EglSurfaceBase mEglCore

Constructors

OffscreenSurface( EglCore eglCore, int width, int height )

Creates an off-screen surface with the specified width and height.

public OffscreenSurface(EglCore eglCore,int width,int height)

Constructor Parameters

eglCore
width
height

Methods

release()

Releases any resources associated with the surface.

public void release()

Inherited Methods

From Class Methods
com.android.grafika.gles.EglSurfaceBase createWindowSurface, createOffscreenSurface, getWidth, getHeight, releaseEglSurface, makeCurrent, makeCurrentReadFrom, swapBuffers, setPresentationTime, saveFrame
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section