Lines Matching refs:SurfaceTexture

26 import android.graphics.SurfaceTexture;
46 * {@link SurfaceTexture}. The {@link SurfaceTexture} can then be used to
64 * public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
75 * public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
79 * public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
85 * public void onSurfaceTextureUpdated(SurfaceTexture surface) {
91 * <p>A TextureView's SurfaceTexture can be obtained either by invoking
93 * It is important to know that a SurfaceTexture is available only after the
96 * be notified when the SurfaceTexture becomes available.</p>
104 * @see SurfaceTexture
110 private SurfaceTexture mSurface;
381 // Create a new SurfaceTexture for the layer.
382 mSurface = new SurfaceTexture(false);
396 // Someone has requested that we use a specific SurfaceTexture, so
397 // tell mLayer about it and set the SurfaceTexture to use the
616 * Returns true if the {@link SurfaceTexture} associated with this
629 * {@link SurfaceTextureListener#onSurfaceTextureAvailable(android.graphics.SurfaceTexture, int, int)}
710 * Returns the {@link SurfaceTexture} used by this view. This method
716 public SurfaceTexture getSurfaceTexture() {
721 * Set the {@link SurfaceTexture} for this view to use. If a {@link
722 * SurfaceTexture} is already being used by this view, it is immediately
725 * called for the previous {@link SurfaceTexture}. Similarly, the {@link
727 * called for the {@link SurfaceTexture} passed to setSurfaceTexture.
729 * The {@link SurfaceTexture} object must be detached from all OpenGL ES
732 * @param surfaceTexture The {@link SurfaceTexture} that the view should use.
733 * @see SurfaceTexture#detachFromGLContext()
735 public void setSurfaceTexture(SurfaceTexture surfaceTexture) {
741 "the same SurfaceTexture that's already set.");
745 "released SurfaceTexture");
789 private final SurfaceTexture.OnFrameAvailableListener mUpdateListener =
790 new SurfaceTexture.OnFrameAvailableListener() {
792 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
804 * Invoked when a {@link TextureView}'s SurfaceTexture is ready for use.
811 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height);
814 * Invoked when the {@link SurfaceTexture}'s buffers size changed.
821 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height);
824 * Invoked when the specified {@link SurfaceTexture} is about to be destroyed.
826 * is invoked. If returns false, the client needs to call {@link SurfaceTexture#release()}.
831 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface);
834 * Invoked when the specified {@link SurfaceTexture} is updated through
835 * {@link SurfaceTexture#updateTexImage()}.
839 public void onSurfaceTextureUpdated(SurfaceTexture surface);
842 private native void nCreateNativeWindow(SurfaceTexture surface);