diff options
| author | 2019-10-30 13:33:31 +0000 | |
|---|---|---|
| committer | 2019-10-30 13:33:31 +0000 | |
| commit | ed38d4f967f39f80d1978dcabee90908edbe563e (patch) | |
| tree | 713c72d9e9e5483ef5ad309cbf74d7d9760a33b0 /graphics/java | |
| parent | bdd75be3f4a7d25a4bda252729b0c518e0ded1ef (diff) | |
| parent | a320e92c56a17a4c70e58e56b2df3d966510196c (diff) | |
Merge "Revert "Remove native calls to HWUI from Surface and use the public API instead""
Diffstat (limited to 'graphics/java')
| -rw-r--r-- | graphics/java/android/graphics/HardwareRenderer.java | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/graphics/java/android/graphics/HardwareRenderer.java b/graphics/java/android/graphics/HardwareRenderer.java index 3f3ad578e8d7..b6b2d4e1c46a 100644 --- a/graphics/java/android/graphics/HardwareRenderer.java +++ b/graphics/java/android/graphics/HardwareRenderer.java @@ -286,24 +286,10 @@ public class HardwareRenderer { * non-null then {@link Surface#isValid()} must be true. */ public void setSurface(@Nullable Surface surface) { - setSurface(surface, false); - } - - /** - * See {@link #setSurface(Surface)} - * - * @hide - * @param discardBuffer determines whether the surface will attempt to preserve its contents - * between frames. If set to true the renderer will attempt to preserve - * the contents of the buffer between frames if the implementation allows - * it. If set to false no attempt will be made to preserve the buffer's - * contents between frames. - */ - public void setSurface(@Nullable Surface surface, boolean discardBuffer) { if (surface != null && !surface.isValid()) { throw new IllegalArgumentException("Surface is invalid. surface.isValid() == false."); } - nSetSurface(mNativeProxy, surface, discardBuffer); + nSetSurface(mNativeProxy, surface); } /** @@ -1098,7 +1084,7 @@ public class HardwareRenderer { private static native void nSetName(long nativeProxy, String name); - private static native void nSetSurface(long nativeProxy, Surface window, boolean discardBuffer); + private static native void nSetSurface(long nativeProxy, Surface window); private static native boolean nPause(long nativeProxy); |