Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8664238 authored by Ramakant Singh's avatar Ramakant Singh
Browse files

sf: Rename default app buffer count property

We are setting default app buffer count property from HAL,
and there we can't go with read only based property.
Hence renaming it.

Change-Id: I9fd4bdb50aca35647402c59b24d78ad5f878aab5
parent b801c8ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ status_t BufferQueueConsumer::acquireBuffer(BufferItem* outBuffer,
        // be discarded based on them.
#ifdef QCOM_BSP
        char property[PROPERTY_VALUE_MAX];
        if (property_get("ro.sf.default_app_buffer", property, NULL) > 0) {
        if (property_get("sf.default.app_buffer_count", property, NULL) > 0) {
           if (!mCore->mQueue[0].mIsAutoTimestamp && mCore->mDefaultMaxBufferCount < 3) {
              const BufferItem& bufferItem(mCore->mQueue[0]);
              nsecs_t desiredPresent = bufferItem.mTimestamp;
+1 −1
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ void Layer::onFirstRef() {

#ifdef QCOM_BSP
    char property[PROPERTY_VALUE_MAX];
    if (property_get("ro.sf.default_app_buffer", property, NULL) > 0) {
    if (property_get("sf.default.app_buffer_count", property, NULL) > 0) {
        mSurfaceFlingerConsumer->setDefaultMaxBufferCount(atoi(property));
    }
#endif