hwc: upgrade to new API

Change-Id: I2aaa086818e25036c7f1ff6c58fa2edc2a3390fd