diff options
author | 2024-03-11 22:23:26 +0000 | |
---|---|---|
committer | 2024-03-13 23:18:22 +0000 | |
commit | 9feca01f617367b4b9e57c75626e81e2a0e4935d (patch) | |
tree | 2671844e75a697e6e19e9ebfb1be33f494916f17 | |
parent | ff8a5a36732e914d3f56b9a1f87bcae856d1da94 (diff) |
Provide a complete definition of FileBlobCache
```
In file included from external/libcxx/include/algorithm:644:
external/libcxx/include/memory:2335:19: error: invalid application of 'sizeof' to an incomplete type 'android::FileBlobCache'
2335 | static_assert(sizeof(_Tp) > 0,
| ^~~~~~~~~~~
external/libcxx/include/memory:2652:7: note: in instantiation of member function 'std::default_delete<android::FileBlobCache>::operator()' requested here
2652 | __ptr_.second()(__tmp);
| ^
external/libcxx/include/memory:2606:19: note: in instantiation of member function 'std::unique_ptr<android::FileBlobCache>::reset' requested here
2606 | ~unique_ptr() { reset(); }
| ^
frameworks/base/libs/hwui/pipeline/skia/ShaderCache.h:40:7: note: in instantiation of member function 'std::unique_ptr<android::FileBlobCache>::~unique_ptr' requested here
40 | class ShaderCache : public GrContextOptions::PersistentCache {
| ^
frameworks/base/libs/hwui/pipeline/skia/ShaderCache.h:35:7: note: forward declaration of 'android::FileBlobCache'
35 | class FileBlobCache;
| ^
1 error generated.
```
Test: Build
Fixes: b/328705924
Change-Id: I6396f5fafef1941201c05d0b107f48e6d28a6631
-rw-r--r-- | libs/hwui/pipeline/skia/ShaderCache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/pipeline/skia/ShaderCache.h b/libs/hwui/pipeline/skia/ShaderCache.h index 6ccb212fe6ca..40dfc9d4309b 100644 --- a/libs/hwui/pipeline/skia/ShaderCache.h +++ b/libs/hwui/pipeline/skia/ShaderCache.h @@ -16,6 +16,7 @@ #pragma once +#include <FileBlobCache.h> #include <GrContextOptions.h> #include <SkRefCnt.h> #include <cutils/compiler.h> @@ -32,7 +33,6 @@ class SkData; namespace android { class BlobCache; -class FileBlobCache; namespace uirenderer { namespace skiapipeline { |