Lines Matching refs:cached
111 int GrVkPipelineStateBuilder::loadShadersFromCache(const SkData& cached, in loadShadersFromCache() argument
129 shader_size vertSize = *((shader_size*) ((char*) cached.data() + offset)); in loadShadersFromCache()
131 SkSL::String vert((char*) cached.data() + offset, vertSize); in loadShadersFromCache()
134 memcpy(&vertInputs, (char*) cached.data() + offset, sizeof(vertInputs)); in loadShadersFromCache()
138 shader_size fragSize = *((shader_size*) ((char*) cached.data() + offset)); in loadShadersFromCache()
140 SkSL::String frag((char*) cached.data() + offset, fragSize); in loadShadersFromCache()
143 memcpy(&fragInputs, (char*) cached.data() + offset, sizeof(fragInputs)); in loadShadersFromCache()
147 shader_size geomSize = *((shader_size*) ((char*) cached.data() + offset)); in loadShadersFromCache()
149 SkSL::String geom((char*) cached.data() + offset, geomSize); in loadShadersFromCache()
152 memcpy(&geomInputs, (char*) cached.data() + offset, sizeof(geomInputs)); in loadShadersFromCache()
155 SkASSERT(offset == cached.size()); in loadShadersFromCache()
283 sk_sp<SkData> cached; in finalize() local
287 cached = persistentCache->load(*key); in finalize()
290 if (cached) { in finalize()
291 numShaderStages = this->loadShadersFromCache(*cached, &vertShaderModule, &fragShaderModule, in finalize()