+18
−0
+19
−0
+251
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
When generating a DisplayHash, each algorithm can have different requirements about how to capture the content. Instead of trying to adjust the buffer after the content is rendered, we can let SurfaceFlinger use the specified arguments to render the content. This can be done by getting the display hash params from ExtServices so they can be specified per algorithm. Then, system server will render the content using the specified values, ensuring a more efficient way to scale and grayscale the final buffer. Test: DisplayHash is grayscale and scaled. Bug: 155825630 Change-Id: I657e2f94219baaac9318500134a6cd82cd07af56