overlay: Change max rotator sessions to 4 and log level
Change max rotator sessions to 4, since we could support upto those many. Change error log to warning log on reaching beyond max rotator sessions, since its not really an error, but flagging it as one raises false positives in testing filters. Change-Id: Ib06a00bce57dfa9dbda3f2e6874a31ce1a155463
This commit is contained in:
parent
9ee9263bd6
commit
d28bdc3047
|
@ -145,7 +145,7 @@ Rotator* RotMgr::getNext() {
|
|||
//Return a rot object, creating one if necessary
|
||||
overlay::Rotator *rot = NULL;
|
||||
if(mUseCount >= MAX_ROT_SESS) {
|
||||
ALOGE("%s, MAX rotator sessions reached", __func__);
|
||||
ALOGW("%s, MAX rotator sessions reached, request rejected", __func__);
|
||||
} else {
|
||||
if(mRot[mUseCount] == NULL)
|
||||
mRot[mUseCount] = overlay::Rotator::getRotator();
|
||||
|
|
|
@ -210,9 +210,7 @@ private:
|
|||
// Holder of rotator objects. Manages lifetimes
|
||||
class RotMgr {
|
||||
public:
|
||||
//Maximum sessions based on VG pipes, since rotator is used only for videos.
|
||||
//Even though we can have 4 mixer stages, that much may be unnecessary.
|
||||
enum { MAX_ROT_SESS = 3 };
|
||||
enum { MAX_ROT_SESS = 4 };
|
||||
|
||||
~RotMgr();
|
||||
void configBegin();
|
||||
|
|
Loading…
Reference in New Issue