The mineral grains in granite are flattened under pressure. This event occurs first. 
Gneiss is a kind of metamorphic rock that is formed when the mineral grains flatten and line up in parallel bands. It is a coarse grained rock comprising of various mineral components like - quartz, graphite etc. It is formed under high pressure and high temperatures.