Merge commit '349d7453088fb63fd786fb1f49f7cf0707329319' * commit '349d7453088fb63fd786fb1f49f7cf0707329319': Copy over updated NDK APIs and follow other API changes.
This commit is contained in:
@@ -13,7 +13,7 @@ import android.view.SurfaceHolder;
|
||||
* Demonstrates how to take over the Surface from a window to do direct
|
||||
* drawing to it (without going through the view hierarchy).
|
||||
*/
|
||||
public class WindowSurface extends Activity implements SurfaceHolder.Callback {
|
||||
public class WindowSurface extends Activity implements SurfaceHolder.Callback2 {
|
||||
DrawingThread mDrawingThread;
|
||||
|
||||
@Override
|
||||
@@ -76,6 +76,9 @@ public class WindowSurface extends Activity implements SurfaceHolder.Callback {
|
||||
// new sizes from the canvas.
|
||||
}
|
||||
|
||||
public void surfaceRedrawNeeded(SurfaceHolder holder) {
|
||||
}
|
||||
|
||||
public void surfaceDestroyed(SurfaceHolder holder) {
|
||||
// We need to tell the drawing thread to stop, and block until
|
||||
// it has done so.
|
||||
|
||||
Reference in New Issue
Block a user