From 521da6ac5c9e8089ef68c7232dd2fa91a5d58fe5 Mon Sep 17 00:00:00 2001
From: David Friedman
+Android N brings synchronous movement to the {@link android.view.SurfaceView} +class, which provides better battery performance +than {@link android.view.TextureView} in certain cases: When rendering video or +3D content, apps with scrolling and animated video position use less power with +{@link android.view.SurfaceView} than with {@link android.view.TextureView}. +
+ +The {@link android.view.SurfaceView} class enables more battery-efficient compositing on +screen, because it is composited in dedicated hardware, separately from app +window content. As a result, it makes fewer intermediate +copies than {@link android.view.TextureView}. + + ++A {@link android.view.SurfaceView} object's content position is now updated synchronously +with the containing app content. One result of this change is that simple +translations or scales of a video playing in a {@link android.view.SurfaceView} +no longer produce black bars alongside the view as it moves. +
+ ++Starting with Android N, we strongly recommend that you save power by using +{@link android.view.SurfaceView} instead of {@link android.view.TextureView}. +