Lines Matching defs:bitmaps
57 * This service is responsible for packing preloaded bitmaps into a single
115 // Describes how bitmaps are placed in the atlas. Each bitmap is
134 ArrayList<Bitmap> bitmaps = new ArrayList<Bitmap>(300);
137 // We only care about drawables that hold bitmaps
145 bitmaps.add(bitmap);
150 // Our algorithms perform better when the bitmaps are first sorted
152 Collections.sort(bitmaps, new Comparator<Bitmap>() {
163 new Thread(new Renderer(bitmaps, totalPixelCount)).start();
203 Renderer(ArrayList<Bitmap> bitmaps, int pixelCount) {
204 mBitmaps = bitmaps;
238 * Renders a list of bitmaps into the atlas. The position of each bitmap
240 * method. If need be this method will also rotate bitmaps.
243 * @param atlas The atlas to pack the bitmaps into
244 * @param packCount The number of bitmaps that will be packed in the atlas
274 // We have more bitmaps to pack than the current configuration
386 * Finds the best atlas configuration to pack the list of supplied bitmaps.
391 ArrayList<Bitmap> bitmaps, int pixelCount) {
400 new ComputeWorker(MIN_SIZE, MAX_SIZE, STEP, bitmaps, pixelCount, results, null).run();
410 bitmaps, pixelCount, results, signal);
422 // Maximize the number of packed bitmaps, minimize the texture size
466 private Configuration chooseConfiguration(ArrayList<Bitmap> bitmaps, int pixelCount,
476 config = computeBestConfiguration(bitmaps, pixelCount);
666 * @param bitmaps The list of bitmaps to pack in the atlas
667 * @param pixelCount The total number of pixels occupied by the list of bitmaps
671 ComputeWorker(int start, int end, int step, List<Bitmap> bitmaps, int pixelCount,
676 mBitmaps = bitmaps;