summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-07-13 17:51:26 -0700
committerDianne Hackborn <hackbod@google.com>2010-07-13 18:45:52 -0700
commit98b2c359c2b3361f43e14b0c5d07a02c055dd10e (patch)
tree98c9e66cf525ca467eeb4a05fcd8aae3567f851f /samples
parent52705bb02c7679f68585544d39480f26adb6f1e9 (diff)
downloadandroid_development-98b2c359c2b3361f43e14b0c5d07a02c055dd10e.tar.gz
android_development-98b2c359c2b3361f43e14b0c5d07a02c055dd10e.tar.bz2
android_development-98b2c359c2b3361f43e14b0c5d07a02c055dd10e.zip
Copy over updated NDK APIs and follow other API changes.
Change-Id: Ifec95268c9ade21963eea13357ec2f56fd7968c2
Diffstat (limited to 'samples')
-rw-r--r--samples/ApiDemos/src/com/example/android/apis/graphics/WindowSurface.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/samples/ApiDemos/src/com/example/android/apis/graphics/WindowSurface.java b/samples/ApiDemos/src/com/example/android/apis/graphics/WindowSurface.java
index 7829ec953..305147c55 100644
--- a/samples/ApiDemos/src/com/example/android/apis/graphics/WindowSurface.java
+++ b/samples/ApiDemos/src/com/example/android/apis/graphics/WindowSurface.java
@@ -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.