Loading core/java/android/view/TextureView.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -379,9 +379,9 @@ public class TextureView extends View { if (createNewSurface) { if (createNewSurface) { // Create a new SurfaceTexture for the layer. // Create a new SurfaceTexture for the layer. mSurface = new SurfaceTexture(false); mSurface = new SurfaceTexture(false); mLayer.setSurfaceTexture(mSurface); nCreateNativeWindow(mSurface); nCreateNativeWindow(mSurface); } } mLayer.setSurfaceTexture(mSurface); mSurface.setDefaultBufferSize(getWidth(), getHeight()); mSurface.setDefaultBufferSize(getWidth(), getHeight()); mSurface.setOnFrameAvailableListener(mUpdateListener, mAttachInfo.mHandler); mSurface.setOnFrameAvailableListener(mUpdateListener, mAttachInfo.mHandler); Loading Loading
core/java/android/view/TextureView.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -379,9 +379,9 @@ public class TextureView extends View { if (createNewSurface) { if (createNewSurface) { // Create a new SurfaceTexture for the layer. // Create a new SurfaceTexture for the layer. mSurface = new SurfaceTexture(false); mSurface = new SurfaceTexture(false); mLayer.setSurfaceTexture(mSurface); nCreateNativeWindow(mSurface); nCreateNativeWindow(mSurface); } } mLayer.setSurfaceTexture(mSurface); mSurface.setDefaultBufferSize(getWidth(), getHeight()); mSurface.setDefaultBufferSize(getWidth(), getHeight()); mSurface.setOnFrameAvailableListener(mUpdateListener, mAttachInfo.mHandler); mSurface.setOnFrameAvailableListener(mUpdateListener, mAttachInfo.mHandler); Loading