add SK_SUPPORT_LEGACY_NEWFROMGENERATOR to prepare for skia change