Home | History | Annotate | Download | only in displaying-bitmaps

Lines Matching full:disk

19   <li><a href="#disk-cache">Use a Disk Cache</a></li>
48 and disk cache can often help here, allowing components to quickly reload processed images.</p>
50 <p>This lesson walks you through using a memory and disk bitmap cache to improve the responsiveness
176 <h2 id="disk-cache">Use a Disk Cache</h2>
184 <p>A disk cache can be used in these cases to persist processed bitmaps and help decrease loading
185 times where images are no longer available in a memory cache. Of course, fetching images from disk
186 is slower than loading from memory and should be done in a background thread, as disk read times can
225 // Check disk cache in background thread
228 if (bitmap == null) { // Not found in disk cache
248 // Also add to disk cache
271 <p>While the memory cache is checked in the UI thread, the disk cache is checked in the background
272 thread. Disk operations should never take place on the UI thread. When image processing is
273 complete, the final bitmap is added to both the memory and disk cache for future use.</p>
337 hopefully available in the disk cache, if not, they are processed as usual.</p>