Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 661e4cb0 authored by Chris Craik's avatar Chris Craik Committed by android-build-merger
Browse files

Merge "Document that SurfaceView is synchronous in N" into nyc-dev am: 0cfbb764 am: 77f70698

am: 44f88692

* commit '44f88692':
  Document that SurfaceView is synchronous in N

Change-Id: I62d5f1eed6441b99edb5054e8d6ee3858663bc38
parents c03c8f12 44f88692
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -82,6 +82,13 @@ import java.util.concurrent.locks.ReentrantLock;
 * and
 * {@link SurfaceHolder.Callback#surfaceDestroyed SurfaceHolder.Callback.surfaceDestroyed()}.
 * </ul>
 *
 * <p class="note"><strong>Note:</strong> Starting in platform version
 * {@link android.os.Build.VERSION_CODES#N}, SurfaceView's window position is
 * updated synchronously with other View rendering. This means that translating
 * and scaling a SurfaceView on screen will not cause rendering artifacts. Such
 * artifacts may occur on previous versions of the platform when its window is
 * positioned asynchronously.</p>
 */
public class SurfaceView extends View {
    static private final String TAG = "SurfaceView";