What has driven the evolution of multiple cone classes in visual systems: object contrast enhancement or light flicker elimination?

What has driven the evolution of multiple cone classes in visual systems: object contrast enhancement or light flicker elimination?