Makes some canvas renderer optimizations.