hwc: upgrade to new API

Change-Id: Ieba4329b65f3020bbe9608e281622db4b4565903