am ccc0d5f9: am 90396672: Don\'t release the GL context when all-apps looses its surface.

Merge commit 'ccc0d5f96b5fabe44be0fa1c3c842294ce06c7b0' into eclair-mr2-plus-aosp

* commit 'ccc0d5f96b5fabe44be0fa1c3c842294ce06c7b0':
  Don't release the GL context when all-apps looses its surface.
This commit is contained in:
Jason Sams
2009-11-03 16:07:04 -08:00
committed by Android Git Automerger
+8 -15
View File
@@ -158,10 +158,6 @@ public class AllAppsView extends RSSurfaceView
@Override
public void surfaceDestroyed(SurfaceHolder holder) {
super.surfaceDestroyed(holder);
destroyRenderScript();
mRS = null;
mRollo = null;
}
@Override
@@ -171,18 +167,15 @@ public class AllAppsView extends RSSurfaceView
super.surfaceChanged(holder, format, w, h);
if (mRS != null) {
destroyRenderScript();
mRS = null;
mRollo = null;
}
if (mRS == null) {
mRS = createRenderScript(true);
mRollo = new RolloRS();
mRollo.init(getResources(), w, h);
if (mAllAppsList != null) {
mRollo.setApps(mAllAppsList);
Log.d(TAG, "surfaceChanged... calling mRollo.setApps");
mRS = createRenderScript(true);
mRollo = new RolloRS();
mRollo.init(getResources(), w, h);
if (mAllAppsList != null) {
mRollo.setApps(mAllAppsList);
Log.d(TAG, "surfaceChanged... calling mRollo.setApps");
}
}
Resources res = getContext().getResources();