OSDN Git Service

drm_hwcomposer: lazily generate shaders for GLWorkerCompositor
authorZach Reizner <zachr@google.com>
Fri, 23 Oct 2015 20:26:43 +0000 (13:26 -0700)
committerZach Reizner <zachr@google.com>
Fri, 23 Oct 2015 20:51:44 +0000 (13:51 -0700)
commitd68353163dc72d2282c564379785dfca47b6df65
tree229e774b77b558cefbef29afb6bc93bc7cd3cf73
parent6f82f1d69d1194ee43dd9f36c0314afb6634cbbb
drm_hwcomposer: lazily generate shaders for GLWorkerCompositor

This still generates the first shader at GLWorkerCompositor::Init() to check
for shader generation errors. It's the only time that shader compilation errors
will be shown on the log.

This change shortens GL initialization time from 2.8 seconds to about 450
milliseconds. Besides improving boot time by 2.3 seconds, less fence timeouts
should happen at boot time due to HWC blocking.

TEST=run and see no display glitches or glworker related errors in logs
BUG=chrome-os-partner:46739

Change-Id: Ia264e3f73a0ebe8558165ae3c215777ef6339ecc
glworker.cpp
glworker.h