Merge "DeferredLayerUpdater: clean up Layer lifecycle"

This commit is contained in:
Sergey Vasilinets
2017-02-14 01:28:24 +00:00
committed by Android (Google) Code Review
6 changed files with 30 additions and 43 deletions

View File

@@ -132,7 +132,7 @@ final class HardwareLayer {
}
public void setSurfaceTexture(SurfaceTexture surface) {
nSetSurfaceTexture(mFinalizer.get(), surface, false);
nSetSurfaceTexture(mFinalizer.get(), surface);
mRenderer.pushLayerUpdate(this);
}
@@ -148,7 +148,6 @@ final class HardwareLayer {
private static native boolean nPrepare(long layerUpdater, int width, int height, boolean isOpaque);
private static native void nSetLayerPaint(long layerUpdater, long paint);
private static native void nSetTransform(long layerUpdater, long matrix);
private static native void nSetSurfaceTexture(long layerUpdater,
SurfaceTexture surface, boolean isAlreadyAttached);
private static native void nSetSurfaceTexture(long layerUpdater, SurfaceTexture surface);
private static native void nUpdateSurfaceTexture(long layerUpdater);
}