SampleApp fixes.
authorScroggo <Scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 21 Jun 2011 16:01:26 +0000 (16:01 +0000)
committerScroggo <Scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 21 Jun 2011 16:01:26 +0000 (16:01 +0000)
commit62b65b0913566381db468277de07e5dd2a9237ca
treed5bfc75e09a389922f96b79d759bbfbcf3d861a9
parentfd0ffcf486a239d65b586bd638e5aaca907244de
SampleApp fixes.

On Android, delete gWindow before calling application_term, avoiding a crash
each time the app closes.  Also make sure the screen is redrawn when resuming.

On Linux, delete gWindow to avoid memory leak.

In general, allow moving from sample 0 to the last sample.

Reviewed at http://codereview.appspot.com/4639060

git-svn-id: http://skia.googlecode.com/svn/trunk@1661 2bbb7eff-a529-9590-31e7-b0007b416f81
android_sample/SampleApp/jni/sample-jni.cpp
android_sample/SampleApp/src/com/skia/sampleapp/SampleApp.java
android_sample/SampleApp/src/com/skia/sampleapp/SampleView.java
samplecode/SampleApp.cpp
samplecode/SampleApp.h
unix_test_app/main.cpp