hwc: Use HWC_DISPLAY_NO_ATTRIBUTE as terminator.

Remove redefining the constant DISPLAY_ATTRIBUTES list, just to know
the size of the attribute array. Instead, check each attribute with
the terminator value HWC_DISPLAY_NO_ATTRIBUTE.

Change-Id: Id3a3362fee9dafda1989c09399c490d498c79e35
1 file changed