Reduce function call in nativeInitBitmapDC to improve performance.