Loading core/java/android/view/Surface.java +14 −14 Original line number Diff line number Diff line Loading @@ -35,6 +35,20 @@ public class Surface implements Parcelable { public static final int ROTATION_180 = 2; public static final int ROTATION_270 = 3; /** * Create Surface from a SurfaceTexture. * * @param surfaceTexture The {@link SurfaceTexture} that is updated by this Surface. * @hide */ public Surface(SurfaceTexture surfaceTexture) { if (DEBUG_RELEASE) { mCreationStack = new Exception(); } mCanvas = new CompatibleCanvas(); initFromSurfaceTexture(surfaceTexture); } /** * Does this object hold a valid surface? Returns true if it holds * a physical surface, so lockCanvas() will succeed. Otherwise Loading Loading @@ -222,20 +236,6 @@ public class Surface implements Parcelable { native private static void nativeClassInit(); static { nativeClassInit(); } /** * Create Surface from a SurfaceTexture. * * @param surfaceTexture The {@link SurfaceTexture} that is updated by this Surface. * @hide */ public Surface(SurfaceTexture surfaceTexture) { if (DEBUG_RELEASE) { mCreationStack = new Exception(); } mCanvas = new CompatibleCanvas(); initFromSurfaceTexture(surfaceTexture); } /** create a surface @hide */ public Surface(SurfaceSession s, int pid, int display, int w, int h, int format, int flags) Loading Loading
core/java/android/view/Surface.java +14 −14 Original line number Diff line number Diff line Loading @@ -35,6 +35,20 @@ public class Surface implements Parcelable { public static final int ROTATION_180 = 2; public static final int ROTATION_270 = 3; /** * Create Surface from a SurfaceTexture. * * @param surfaceTexture The {@link SurfaceTexture} that is updated by this Surface. * @hide */ public Surface(SurfaceTexture surfaceTexture) { if (DEBUG_RELEASE) { mCreationStack = new Exception(); } mCanvas = new CompatibleCanvas(); initFromSurfaceTexture(surfaceTexture); } /** * Does this object hold a valid surface? Returns true if it holds * a physical surface, so lockCanvas() will succeed. Otherwise Loading Loading @@ -222,20 +236,6 @@ public class Surface implements Parcelable { native private static void nativeClassInit(); static { nativeClassInit(); } /** * Create Surface from a SurfaceTexture. * * @param surfaceTexture The {@link SurfaceTexture} that is updated by this Surface. * @hide */ public Surface(SurfaceTexture surfaceTexture) { if (DEBUG_RELEASE) { mCreationStack = new Exception(); } mCanvas = new CompatibleCanvas(); initFromSurfaceTexture(surfaceTexture); } /** create a surface @hide */ public Surface(SurfaceSession s, int pid, int display, int w, int h, int format, int flags) Loading