From 9e7cd07a30a0ed27852ad04d2997f00387b55dcf Mon Sep 17 00:00:00 2001 From: Stan Iliev Date: Mon, 9 Oct 2017 15:56:10 -0400 Subject: Move some of the logic from egl_cache_t into FileBlobCache HWUI is using BlobCache to implement SkSL shader cache very similar to egl_cache_t. Create a new class FileBlobCache, that is used by both egl_cache_t and HWUI. FileBlobCache adds the logic to save and load the BlobCache from a memory mapped file. Test: Built and ran Android. Verified that EGL cache still works Test: for gmail and calc apps. Bug: 66740665 Change-Id: Ia4d194963d039a60244f3bc76108844418adc99d --- opengl/libs/Android.bp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'opengl/libs/Android.bp') diff --git a/opengl/libs/Android.bp b/opengl/libs/Android.bp index 32c2d7e0d5..d43c1648be 100644 --- a/opengl/libs/Android.bp +++ b/opengl/libs/Android.bp @@ -122,6 +122,16 @@ cc_library_static { }, } +cc_library_static { + name: "libEGL_blobCache", + defaults: ["egl_libs_defaults"], + srcs: [ + "EGL/BlobCache.cpp", + "EGL/FileBlobCache.cpp", + ], + export_include_dirs: ["EGL"], +} + cc_library_shared { name: "libEGL", defaults: ["egl_libs_defaults"], @@ -133,7 +143,6 @@ cc_library_shared { "EGL/egl.cpp", "EGL/eglApi.cpp", "EGL/Loader.cpp", - "EGL/BlobCache.cpp", ], shared_libs: [ "libvndksupport", @@ -143,7 +152,10 @@ cc_library_shared { "libhidltransport", "libutils", ], - static_libs: ["libEGL_getProcAddress"], + static_libs: [ + "libEGL_getProcAddress", + "libEGL_blobCache", + ], ldflags: ["-Wl,--exclude-libs=ALL"], export_include_dirs: ["EGL/include"], } -- cgit v1.2.3-59-g8ed1b