if (!isBgOperation(srcData, bgColor)) {
Blit blit = Blit.getFromCache(srcType, comp, dstType);
blit.Blit(srcData, dstData, sg.composite, sg.getCompClip(),
sx, sy, dx, dy, w, h);
} else {
BlitBg blit = BlitBg.getFromCache(srcType, comp, dstType);
blit.BlitBg(srcData, dstData, sg.composite, sg.getCompClip(),
bgColor, sx, sy, dx, dy, w, h);
}
}