Add ifdefs for QC-specific dirtyRect feature

Change-Id: I784e76ead2f8b9eeb6d5e99bd2f83fb6a32db8d8