public void draw(Drawable drawable,Paint_Delegate paint,boolean compositeOnly,boolean forceSrcMode){
  if (mLayers.size() == 1) {
    drawInLayer(mLayers.get(0),drawable,paint,compositeOnly,forceSrcMode);
  }
 else {
    int flags;
    int i=mLayers.size() - 1;
    do {
      Layer layer=mLayers.get(i);
      drawInLayer(layer,drawable,paint,compositeOnly,forceSrcMode);
      i--;
      flags=layer.getFlags();
    }
 while (i >= 0 && (flags & Canvas.CLIP_TO_LAYER_SAVE_FLAG) == 0);
  }
}

public void draw ( Drawable drawable , Paint_Delegate paint , boolean compositeOnly , boolean forceSrcMode ) { if ( mLayers . size ( ) == 1 ) { drawInLayer ( mLayers . get ( 0 ) , drawable , paint , compositeOnly , forceSrcMode ) ; } else { int flags ; int i = mLayers . size ( ) - 1 ; do { Layer layer = mLayers . get ( i ) ; drawInLayer ( layer , drawable , paint , compositeOnly , forceSrcMode ) ; i -- ; flags = layer . getFlags ( ) ; } while ( i >= 0 && ( flags & Canvas . CLIP_TO_LAYER_SAVE_FLAG ) == 0 ) ; } }
executes the drawable ' s draw method . < p / > note that the method can be called several times if there are more than one active layer .
