Fix tone shift issue when switching between GPU and DPU composition.

- This fixes the issue that extended layer gets crushed in Adaptive
  mode.
- When playing with extended HDR api in Adaptive mode, dim in gamma
  space and convert transfer to gamma22 to get a
  `OETF_gamma22(EOTF_sRGB(color))` SkRuntimeEffect.

Bug: 267530123
Test: play extended HDR on SilkFx and toggle between GPU/DPU
composition.

Change-Id: I029c86ea98969d736a72b9099d8e457006d9db38
2 files changed