That sounds like Tasty Planet.
You play a small blob created in a laboratory to clean up and consume dirt. As you eat more, you grow large enough to move on to bigger objects, and eventually you're swallowing planets and everything else in your path.