Home
last modified time | relevance | path

Searched refs:ShaderCache (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DShaderCacheTests.cpp41 static void setSaveDelay(ShaderCache& cache, unsigned int saveDelay) { in setSaveDelay()
49 static void terminate(ShaderCache& cache, bool saveContent) { in terminate()
60 static bool validateCache(ShaderCache& cache, std::vector<T> hash) { in validateCache()
132 ShaderCache::get().setFilename(cacheFile1.c_str()); in TEST()
133 ShaderCacheTestUtils::setSaveDelay(ShaderCache::get(), 0); // disable deferred save in TEST()
134 ShaderCache::get().initShaderDiskCache(); in TEST()
138 ASSERT_EQ(ShaderCache::get().load(GrProgramDescTest(432)), sk_sp<SkData>()); in TEST()
143 ShaderCache::get().store(GrProgramDescTest(100), *inVS.get()); in TEST()
145 ShaderCache::get().store(GrProgramDescTest(432), *inVS.get()); in TEST()
146 ASSERT_NE((outVS = ShaderCache::get().load(GrProgramDescTest(100))), sk_sp<SkData>()); in TEST()
[all …]
/frameworks/base/libs/hwui/pipeline/skia/
DShaderCache.cpp37 ShaderCache::ShaderCache() { in ShaderCache() function in android::uirenderer::skiapipeline::ShaderCache
41 ShaderCache ShaderCache::sCache;
43 ShaderCache& ShaderCache::get() { in get()
47 bool ShaderCache::validateCache(const void* identity, ssize_t size) { in validateCache()
78 void ShaderCache::initShaderDiskCache(const void* identity, ssize_t size) { in initShaderDiskCache()
92 void ShaderCache::setFilename(const char* filename) { in setFilename()
97 BlobCache* ShaderCache::getBlobCacheLocked() { in getBlobCacheLocked()
102 sk_sp<SkData> ShaderCache::load(const SkData& key) { in load()
142 void ShaderCache::saveToDiskLocked() { in saveToDiskLocked()
154 void ShaderCache::store(const SkData& key, const SkData& data) { in store()
[all …]
DShaderCache.h34 class ShaderCache : public GrContextOptions::PersistentCache {
40 ANDROID_API static ShaderCache& get();
87 ShaderCache();
90 ShaderCache(const ShaderCache&) = delete;
91 void operator=(const ShaderCache&) = delete;
206 static ShaderCache sCache;
DSkiaVulkanPipeline.cpp75 ShaderCache::get().onVkFrameFlushed(mRenderThread.getGrContext()); in draw()
/frameworks/base/libs/hwui/renderthread/
DCacheManager.cpp99 auto& cache = skiapipeline::ShaderCache::get(); in configureContext()
/frameworks/base/libs/hwui/
DAndroid.bp163 "pipeline/skia/ShaderCache.cpp",
/frameworks/base/core/jni/
Dandroid_view_ThreadedRenderer.cpp1081 uirenderer::skiapipeline::ShaderCache::get().setFilename(skiaCacheArray); in android_view_ThreadedRenderer_setupShadersDiskCache()