sde: Transition to safe mode in case of resource failures

1. No Pipe resources available for any display, move to safe mode
   composition for all displays, so that strategy manager selects
   the composition mode which requires optimal resource.
2. Move back to normal mode once all the displays are configured
   successfully with the resources for the current drawcycle.

Change-Id: Ic66d893a6ba50eb88cf8c70dae4df3772d47e1a0
This commit is contained in:
Ramkumar Radhakrishnan
2014-11-03 19:39:11 -08:00
committed by Gerrit - the friendly Code Review server
parent 8ff5253c10
commit b36eee9a1d
7 changed files with 51 additions and 25 deletions

View File

@@ -43,6 +43,9 @@
#define ROUND_UP(number, step) ((((number) + ((step) - 1)) / (step)) * (step))
#define SET_BIT(value, bit) ((value) | (1 << (bit)))
#define CLEAR_BIT(value, bit) ((value) & (~(1 << (bit))))
namespace sde {
const int kThreadPriorityUrgent = -9;