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

Commit ed80af42 authored by Manoj Kumar AVM's avatar Manoj Kumar AVM Committed by Linux Build Service Account
Browse files

libgui: Add native window attributes to query usage

This is required to enable GL libraries to query usage
native window attributes to enable/disable tile rendering.

Change-Id: If752fa26ac3d8ffd7776cc5a16fe162af0742df5
parent bf5430d3
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -406,6 +406,16 @@ int Surface::query(int what, int* value) const {
                }
                return err;
            }
            case NATIVE_WINDOW_CONSUMER_USAGE_BITS: {
                status_t err = NO_ERROR;
                err = mGraphicBufferProducer->query(what, value);
                if(err == NO_ERROR) {
                    *value |= mReqUsage;
                    return NO_ERROR;
                } else {
                    return err;
                }
            }
        }
    }
    return mGraphicBufferProducer->query(what, value);