Lock render thread when surface is lost, wait for new surface. 16/32516/8
authorDavid Steele <david.steele@partner.samsung.com>
Thu, 18 Dec 2014 16:21:22 +0000 (16:21 +0000)
committerDavid Steele <david.steele@partner.samsung.com>
Wed, 11 Feb 2015 13:16:26 +0000 (05:16 -0800)
commit9aa97141a0e50120a4714a9e8c5450940deca1ee
treee8a38b9f73369433f74530ce5c04fc496ae58d44
parentadeec8c8fa6fb4d3ac5ab6d76fad31d4c3415fc7
Lock render thread when surface is lost, wait for new surface.

If PreRender returns false, e.g. when there is no surface (for whatever
reason), then lock the render thread to prevent any GL calls from
occurring. Wait for a NewSurface request from event thread.

Change-Id: Ib64efbc1dfb3c8c5beab84ea76b6be97bfd9dcab
Signed-off-by: David Steele <david.steele@partner.samsung.com>
adaptors/base/render-thread.cpp
adaptors/base/update-render-controller.cpp
adaptors/base/update-render-controller.h
adaptors/base/update-render-synchronization.cpp
adaptors/base/update-render-synchronization.h
adaptors/common/render-surface-impl.h