Code example for Surface

Methods: setMatrix

0
                        + mTmpFloats[Matrix.MSKEW_Y] + "]");
            } 
        } 
 
        void clearMatrix() { 
            surface.setMatrix(1, 0, 0, 1);
        } 
    } 
 
    final Matrix mTmpMatrix = new Matrix();
    final float[] mTmpFloats = new float[9];
    final BlackSurface[] mBlackSurfaces = new BlackSurface[4];
 
    public BlackFrame(SurfaceSession session, Rect outer, Rect inner,
            int layer) throws Surface.OutOfResourcesException {
        boolean success = false;
 
        try { 
            if (outer.top < inner.top) {
                mBlackSurfaces[0] = new BlackSurface(session, layer,
                        outer.left, outer.top, inner.right, inner.top);