Lines Matching defs:patch
106 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) {
110 if (key.getPatch() == patch) {
116 void PatchCache::removeDeferred(Res_png_9patch* patch) {
119 // Assert that patch is not already garbage
122 if (patch == mGarbage[i]) {
123 patch = nullptr;
127 LOG_ALWAYS_FATAL_IF(patch == nullptr);
129 mGarbage.push(patch);
139 Res_png_9patch* patch = mGarbage[i];
140 remove(patchesToRemove, patch);
143 delete[] (int8_t*) patch;
153 // Release the patch and mark the space in the free list
154 Patch* patch = pair.getSecond();
155 BufferBlock* block = new BufferBlock(patch->positionOffset, patch->getSize());
159 mSize -= patch->getSize();
162 delete patch;
215 // Copy the 9patch mesh in the VBO
241 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) {
243 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch);
249 pixelWidth, pixelHeight, mapper, patch);
256 dumpFreeBlocks("Adding patch");