예제 #1
0
 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();
     mRS = createRenderScriptGL(sc);
     mRS.setSurface(holder, w, h);
     mRender = new RSTestCore(mCtx);
     mRender.init(mRS, getResources(), w, h);
   }
 }
 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);
   }
 }