Lines Matching refs:patch
44 INIT_LOGD(" Setting patch cache size to %skB", property);
47 INIT_LOGD(" Using default patch cache size of %.2fkB", DEFAULT_PATCH_CACHE_SIZE);
116 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) {
120 if (key.getPatch() == patch) {
126 void PatchCache::removeDeferred(Res_png_9patch* patch) {
129 // Assert that patch is not already garbage
132 if (patch == mGarbage[i]) {
133 patch = nullptr;
137 LOG_ALWAYS_FATAL_IF(patch == nullptr);
139 mGarbage.push(patch);
149 Res_png_9patch* patch = mGarbage[i];
150 remove(patchesToRemove, patch);
153 delete[] (int8_t*) patch;
163 // Release the patch and mark the space in the free list
164 Patch* patch = pair.getSecond();
165 BufferBlock* block = new BufferBlock(patch->positionOffset, patch->getSize());
169 mSize -= patch->getSize();
172 delete patch;
225 // Copy the 9patch mesh in the VBO
251 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) {
253 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch);
259 pixelWidth, pixelHeight, mapper, patch);
266 dumpFreeBlocks("Adding patch");