@@ -32,21 +32,21 @@ public class BlackFrame {
3232 class BlackSurface {
3333 final int left ;
3434 final int top ;
35+ final int layer ;
3536 final Surface surface ;
3637
3738 BlackSurface (SurfaceSession session , int layer , int l , int t , int r , int b )
3839 throws Surface .OutOfResourcesException {
3940 left = l ;
4041 top = t ;
42+ this .layer = layer ;
4143 int w = r -l ;
4244 int h = b -t ;
4345 surface = new Surface (session , 0 , "BlackSurface" ,
4446 -1 , w , h , PixelFormat .OPAQUE , Surface .FX_SURFACE_DIM );
4547 if (WindowManagerService .SHOW_TRANSACTIONS ||
4648 WindowManagerService .SHOW_SURFACE_ALLOC ) Slog .i (WindowManagerService .TAG ,
4749 " BLACK " + surface + ": CREATE layer=" + layer );
48- surface .setAlpha (1.0f );
49- surface .setLayer (layer );
5050 }
5151
5252 void setMatrix (Matrix matrix ) {
@@ -58,6 +58,8 @@ void setMatrix(Matrix matrix) {
5858 surface .setMatrix (
5959 mTmpFloats [Matrix .MSCALE_X ], mTmpFloats [Matrix .MSKEW_Y ],
6060 mTmpFloats [Matrix .MSKEW_X ], mTmpFloats [Matrix .MSCALE_Y ]);
61+ surface .setAlpha (1.0f );
62+ surface .setLayer (layer );
6163 if (false ) {
6264 Slog .i (WindowManagerService .TAG , "Black Surface @ (" + left + "," + top + "): ("
6365 + mTmpFloats [Matrix .MTRANS_X ] + ","
0 commit comments