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

Commit 35782a36 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add a system prop to control shader cache priming"

parents 69fef8dd 137d4bc9
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -678,7 +678,11 @@ void SurfaceFlinger::init() {
    // set initial conditions (e.g. unblank default device)
    initializeDisplays();

    char primeShaderCache[PROPERTY_VALUE_MAX];
    property_get("service.sf.prime_shader_cache", primeShaderCache, "1");
    if (atoi(primeShaderCache)) {
        getRenderEngine().primeCache();
    }

    // Inform native graphics APIs whether the present timestamp is supported: