OSDN Git Service

HWC2On1: Fall back to GLES for SolidColor
authorDan Stoza <stoza@google.com>
Thu, 15 Sep 2016 23:38:42 +0000 (16:38 -0700)
committerDan Stoza <stoza@google.com>
Thu, 15 Sep 2016 23:41:53 +0000 (16:41 -0700)
commit5df47cb648a6911dd62527901bb209fd65c73bed
tree294d3154578def8cb56655b720218b68153e23c1
parent186c4c93a7d35d14dd5e6a6850f2cb884c31db79
HWC2On1: Fall back to GLES for SolidColor

Even though SolidColor layers map cleanly to HWC_BACKGROUND composition
in HWC1, SurfaceFlinger never used HWC_BACKGROUND, so we can't trust
that HWC1 devices implemented it correctly. To preserve backwards
compatibility, this changes the behavior to fall back to client
composition to minimize incompatibilities with existing devices.

Bug: 30479781
Change-Id: I638339062e03f2c057b3e1624e7157587ddee7ec
services/surfaceflinger/DisplayHardware/HWC2On1Adapter.cpp