diff options
| author | 2023-02-17 14:55:59 -0700 | |
|---|---|---|
| committer | 2023-02-27 10:24:06 -0700 | |
| commit | e3626fb6e8f1576b28663d96c667ecebf7e58cea (patch) | |
| tree | a8f5f3600b7d3a98017dd2df7a0a09a3e71675f0 | |
| parent | b304b2f1177251c5deb904306ba5ad820e1c119d (diff) | |
EGL BlobCache: Don't check system property during init
Trying to isolate why there is a slowdown when multifile is already
disabled via config.
This is a cherry-pick from master.
Test: Boot
Bug: b/266725576
Bug: b/268595699
Change-Id: I6dafcc1c5068042f7fb977b0ee012910db7f7419
Merged-In: 91307c641b14624a373b601837e8fc397543c987
| -rw-r--r-- | opengl/libs/EGL/egl_cache.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/opengl/libs/EGL/egl_cache.cpp b/opengl/libs/EGL/egl_cache.cpp index b00ee33374..8140292b34 100644 --- a/opengl/libs/EGL/egl_cache.cpp +++ b/opengl/libs/EGL/egl_cache.cpp @@ -110,38 +110,6 @@ void egl_cache_t::initialize(egl_display_t* display) { } } - // Check the device config to decide whether multifile should be used - if (base::GetBoolProperty("ro.egl.blobcache.multifile", false)) { - mMultifileMode = true; - ALOGV("Using multifile EGL blobcache"); - } - - // Allow forcing the mode for debug purposes - std::string mode = base::GetProperty("debug.egl.blobcache.multifile", ""); - if (mode == "true") { - ALOGV("Forcing multifile cache due to debug.egl.blobcache.multifile == %s", mode.c_str()); - mMultifileMode = true; - } else if (mode == "false") { - ALOGV("Forcing monolithic cache due to debug.egl.blobcache.multifile == %s", mode.c_str()); - mMultifileMode = false; - } - - if (mMultifileMode) { - mCacheByteLimit = static_cast<size_t>( - base::GetUintProperty<uint32_t>("ro.egl.blobcache.multifile_limit", - kMultifileCacheByteLimit)); - - // Check for a debug value - int debugCacheSize = base::GetIntProperty("debug.egl.blobcache.multifile_limit", -1); - if (debugCacheSize >= 0) { - ALOGV("Overriding cache limit %zu with %i from debug.egl.blobcache.multifile_limit", - mCacheByteLimit, debugCacheSize); - mCacheByteLimit = debugCacheSize; - } - - ALOGV("Using multifile EGL blobcache limit of %zu bytes", mCacheByteLimit); - } - mInitialized = true; } |