Merge "Document that SurfaceView is synchronous in N" into nyc-dev

am: 0cfbb7643e

* commit '0cfbb7643ef81cc8d1fd72bfe7c651d0e5e04949':
  Document that SurfaceView is synchronous in N

Change-Id: I1e4a36d64be663103c3150c86a75e2baa51fa4c4
This commit is contained in:
Chris Craik
2016-05-18 00:55:16 +00:00
committed by android-build-merger

View File

@@ -82,6 +82,13 @@ import java.util.concurrent.locks.ReentrantLock;
* and * and
* {@link SurfaceHolder.Callback#surfaceDestroyed SurfaceHolder.Callback.surfaceDestroyed()}. * {@link SurfaceHolder.Callback#surfaceDestroyed SurfaceHolder.Callback.surfaceDestroyed()}.
* </ul> * </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 { public class SurfaceView extends View {
static private final String TAG = "SurfaceView"; static private final String TAG = "SurfaceView";