libhwc2.1: handling RGB HDR layers

Turn on HBM instantly for RGB HDR layer.
Calcuate SDR layers dim ratio.

Bug: 168225512
Change-Id: I580ee87fecadb5de720b2e31606e10a4fe74457b
6 files changed