Lines Matching full:heap
53 // Flatten, storing it in the bitmap heap.
54 SkBitmapHeap heap(1, 1);
56 controller.setBitmapStorage(&heap);
59 // Dictionary and heap start off empty.
60 REPORTER_ASSERT(reporter, heap.count() == 0);
63 heap.deferAddingOwners();
65 heap.endAddingOwnersDeferral(true);
67 // The dictionary and heap should now each have one entry.
69 REPORTER_ASSERT(reporter, heap.count() == 1);
73 SkBitmapHeapEntry* entry = heap.getEntry(0);
79 // Now clear out the heap, after which it should be empty.
80 heap.freeMemoryIfPossible(~0U);
81 REPORTER_ASSERT(reporter, heap.count() == 0);
84 heap.deferAddingOwners();
86 heap.endAddingOwnersDeferral(false);
89 // The bitmap heap should contain the bitmap, but with no references.
91 REPORTER_ASSERT(reporter, heap.count() == 1);
92 REPORTER_ASSERT(reporter, SkBitmapHeapTester::GetRefCount(heap.getEntry(0)) == 0);