public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {
   super.surfaceChanged(holder, format, w, h);
   if (mRS == null) {
     RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig();
     sc.setDepth(16, 24);
     mRS = createRenderScriptGL(sc);
     mRS.setSurface(holder, w, h);
     mRender = new RsBenchRS();
     Log.v("RsBenchView", "mLoops = " + mLoops);
     mRender.init(mRS, getResources(), w, h, mLoops);
   }
 }
 void setDebugMode(int num) {
   mRender.setDebugMode(num);
 }
 void suspendRendering(boolean pause) {
   mRender.pause(pause);
 }
 void setBenchmarkMode(int benchNum) {
   mRender.setBenchmarkMode(benchNum);
 }
 /** Wait for message from the script */
 public boolean testIsFinished() {
   return mRender.testIsFinished();
 }