Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -21643,6 +21643,7 @@ package android.view { method public abstract void onSurfaceTextureAvailable(android.graphics.SurfaceTexture, int, int); method public abstract void onSurfaceTextureDestroyed(android.graphics.SurfaceTexture); method public abstract void onSurfaceTextureSizeChanged(android.graphics.SurfaceTexture, int, int); method public abstract void onSurfaceTextureUpdated(android.graphics.SurfaceTexture); } public class TouchDelegate { core/java/android/view/TextureView.java +18 −2 Original line number Diff line number Diff line Loading @@ -76,6 +76,10 @@ import android.util.Log; * mCamera.stopPreview(); * mCamera.release(); * } * * public void onSurfaceTextureUpdated(SurfaceTexture surface) { * // Ignored * } * } * </pre> * Loading Loading @@ -315,6 +319,10 @@ public class TextureView extends View { mAttachInfo.mHardwareRenderer.updateTextureLayer(mLayer, getWidth(), getHeight(), mOpaque); if (mListener != null) { mListener.onSurfaceTextureUpdated(mSurface); } invalidate(); } Loading Loading @@ -474,6 +482,14 @@ public class TextureView extends View { * @param surface The surface about to be destroyed */ public void onSurfaceTextureDestroyed(SurfaceTexture surface); /** * Invoked when the specified {@link SurfaceTexture} is updated through * {@link SurfaceTexture#updateTexImage()}. * * @param surface The surface just updated */ public void onSurfaceTextureUpdated(SurfaceTexture surface); } private static native void nSetDefaultBufferSize(SurfaceTexture surfaceTexture, Loading graphics/java/android/renderscript/RSTextureView.java +6 −0 Original line number Diff line number Diff line Loading @@ -94,6 +94,12 @@ public class RSTextureView extends TextureView implements TextureView.SurfaceTex } } @Override public void onSurfaceTextureUpdated(SurfaceTexture surface) { //Log.e(RenderScript.LOG_TAG, "onSurfaceTextureUpdated"); mSurfaceTexture = surface; } /** * Inform the view that the activity is paused. The owner of this view must * call this method when the activity is paused. Calling this method will Loading tests/HwAccelerationTest/src/com/android/test/hwui/GLTextureViewActivity.java +4 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,10 @@ public class GLTextureViewActivity extends Activity implements TextureView.Surfa } } @Override public void onSurfaceTextureUpdated(SurfaceTexture surface) { } private static class RenderThread extends Thread { private static final String LOG_TAG = "GLTextureView"; Loading tests/HwAccelerationTest/src/com/android/test/hwui/GetBitmapActivity.java +5 −0 Original line number Diff line number Diff line Loading @@ -100,4 +100,9 @@ public class GetBitmapActivity extends Activity implements TextureView.SurfaceTe mCamera.stopPreview(); mCamera.release(); } @Override public void onSurfaceTextureUpdated(SurfaceTexture surface) { // Ignored } } Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -21643,6 +21643,7 @@ package android.view { method public abstract void onSurfaceTextureAvailable(android.graphics.SurfaceTexture, int, int); method public abstract void onSurfaceTextureDestroyed(android.graphics.SurfaceTexture); method public abstract void onSurfaceTextureSizeChanged(android.graphics.SurfaceTexture, int, int); method public abstract void onSurfaceTextureUpdated(android.graphics.SurfaceTexture); } public class TouchDelegate {
core/java/android/view/TextureView.java +18 −2 Original line number Diff line number Diff line Loading @@ -76,6 +76,10 @@ import android.util.Log; * mCamera.stopPreview(); * mCamera.release(); * } * * public void onSurfaceTextureUpdated(SurfaceTexture surface) { * // Ignored * } * } * </pre> * Loading Loading @@ -315,6 +319,10 @@ public class TextureView extends View { mAttachInfo.mHardwareRenderer.updateTextureLayer(mLayer, getWidth(), getHeight(), mOpaque); if (mListener != null) { mListener.onSurfaceTextureUpdated(mSurface); } invalidate(); } Loading Loading @@ -474,6 +482,14 @@ public class TextureView extends View { * @param surface The surface about to be destroyed */ public void onSurfaceTextureDestroyed(SurfaceTexture surface); /** * Invoked when the specified {@link SurfaceTexture} is updated through * {@link SurfaceTexture#updateTexImage()}. * * @param surface The surface just updated */ public void onSurfaceTextureUpdated(SurfaceTexture surface); } private static native void nSetDefaultBufferSize(SurfaceTexture surfaceTexture, Loading
graphics/java/android/renderscript/RSTextureView.java +6 −0 Original line number Diff line number Diff line Loading @@ -94,6 +94,12 @@ public class RSTextureView extends TextureView implements TextureView.SurfaceTex } } @Override public void onSurfaceTextureUpdated(SurfaceTexture surface) { //Log.e(RenderScript.LOG_TAG, "onSurfaceTextureUpdated"); mSurfaceTexture = surface; } /** * Inform the view that the activity is paused. The owner of this view must * call this method when the activity is paused. Calling this method will Loading
tests/HwAccelerationTest/src/com/android/test/hwui/GLTextureViewActivity.java +4 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,10 @@ public class GLTextureViewActivity extends Activity implements TextureView.Surfa } } @Override public void onSurfaceTextureUpdated(SurfaceTexture surface) { } private static class RenderThread extends Thread { private static final String LOG_TAG = "GLTextureView"; Loading
tests/HwAccelerationTest/src/com/android/test/hwui/GetBitmapActivity.java +5 −0 Original line number Diff line number Diff line Loading @@ -100,4 +100,9 @@ public class GetBitmapActivity extends Activity implements TextureView.SurfaceTe mCamera.stopPreview(); mCamera.release(); } @Override public void onSurfaceTextureUpdated(SurfaceTexture surface) { // Ignored } }