OSDN Git Service

hwc2: Cache display type at construction
authorChris Forbes <chrisforbes@google.com>
Tue, 11 Apr 2017 17:04:31 +0000 (10:04 -0700)
committerChris Forbes <chrisforbes@google.com>
Tue, 11 Apr 2017 21:23:42 +0000 (14:23 -0700)
commit016d73c2d8f8fae544f09a6eebe827791f499470
tree31c58cf2e7f7ec9e40d17c8770761d7882cdc2fa
parent273e144215bbe3042686577032e584c4ec701447
hwc2: Cache display type at construction

The display type is constant for the life of the display. Query it
upfront to avoid the binder transaction later.

V2: fixup HWC1 path

Test: boot to launcher on bullhead; build on fugu for HWC1 path
Bug: b/36597125
Change-Id: I2a4c3d9ff449960957376afef78f424261fcc282
services/surfaceflinger/DisplayHardware/HWC2.cpp
services/surfaceflinger/DisplayHardware/HWC2.h