discardable 69 base/memory/discardable_memory_manager.cc const DiscardableMemory* discardable, size_t bytes) { discardable 76 base/memory/discardable_memory_manager.cc DCHECK(allocations_.Peek(discardable) == allocations_.end()); discardable 77 base/memory/discardable_memory_manager.cc allocations_.Put(discardable, Allocation(bytes)); discardable 81 base/memory/discardable_memory_manager.cc const DiscardableMemory* discardable) { discardable 83 base/memory/discardable_memory_manager.cc AllocationMap::iterator it = allocations_.Peek(discardable); discardable 97 base/memory/discardable_memory_manager.cc const DiscardableMemory* discardable, discardable 102 base/memory/discardable_memory_manager.cc AllocationMap::iterator it = allocations_.Get(discardable); discardable 138 base/memory/discardable_memory_manager.cc const DiscardableMemory* discardable, discardable 143 base/memory/discardable_memory_manager.cc AllocationMap::iterator it = allocations_.Get(discardable); discardable 158 base/memory/discardable_memory_manager.cc const DiscardableMemory* discardable) const { discardable 160 base/memory/discardable_memory_manager.cc AllocationMap::const_iterator it = allocations_.Peek(discardable); discardable 165 base/memory/discardable_memory_manager.cc const DiscardableMemory* discardable) const { discardable 167 base/memory/discardable_memory_manager.cc AllocationMap::const_iterator it = allocations_.Peek(discardable); discardable 65 base/memory/discardable_memory_manager.h void Register(const DiscardableMemory* discardable, size_t bytes); discardable 68 base/memory/discardable_memory_manager.h void Unregister(const DiscardableMemory* discardable); discardable 74 base/memory/discardable_memory_manager.h const DiscardableMemory* discardable, bool* purged); discardable 78 base/memory/discardable_memory_manager.h void Release(const DiscardableMemory* discardable, discardable 86 base/memory/discardable_memory_manager.h bool IsRegisteredForTest(const DiscardableMemory* discardable) const; discardable 90 base/memory/discardable_memory_manager.h bool CanBePurgedForTest(const DiscardableMemory* discardable) const; discardable 70 base/memory/discardable_memory_manager_unittest.cc bool IsRegistered(const DiscardableMemory* discardable) { discardable 71 base/memory/discardable_memory_manager_unittest.cc return manager_->IsRegisteredForTest(discardable); discardable 74 base/memory/discardable_memory_manager_unittest.cc bool CanBePurged(const DiscardableMemory* discardable) { discardable 75 base/memory/discardable_memory_manager_unittest.cc return manager_->CanBePurgedForTest(discardable); discardable 82 base/memory/discardable_memory_manager_unittest.cc void* Memory(const DiscardableMemory* discardable) const { discardable 83 base/memory/discardable_memory_manager_unittest.cc return discardable->Memory(); discardable 116 base/memory/discardable_memory_manager_unittest.cc const scoped_ptr<DiscardableMemory> discardable(CreateLockedMemory(size)); discardable 117 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(IsRegistered(discardable.get())); discardable 118 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(static_cast<void*>(NULL), Memory(discardable.get())); discardable 120 base/memory/discardable_memory_manager_unittest.cc EXPECT_FALSE(CanBePurged(discardable.get())); discardable 125 base/memory/discardable_memory_manager_unittest.cc const scoped_ptr<DiscardableMemory> discardable(CreateLockedMemory(size)); discardable 126 base/memory/discardable_memory_manager_unittest.cc EXPECT_FALSE(discardable); discardable 127 base/memory/discardable_memory_manager_unittest.cc EXPECT_FALSE(IsRegistered(discardable.get())); discardable 133 base/memory/discardable_memory_manager_unittest.cc const scoped_ptr<DiscardableMemory> discardable(CreateLockedMemory(size)); discardable 134 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(IsRegistered(discardable.get())); discardable 135 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(static_cast<void*>(NULL), Memory(discardable.get())); discardable 137 base/memory/discardable_memory_manager_unittest.cc EXPECT_FALSE(CanBePurged(discardable.get())); discardable 140 base/memory/discardable_memory_manager_unittest.cc discardable->Unlock(); discardable 141 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(CanBePurged(discardable.get())); discardable 143 base/memory/discardable_memory_manager_unittest.cc EXPECT_EQ(DISCARDABLE_MEMORY_LOCK_STATUS_SUCCESS, discardable->Lock()); discardable 144 base/memory/discardable_memory_manager_unittest.cc EXPECT_FALSE(CanBePurged(discardable.get())); discardable 149 base/memory/discardable_memory_manager_unittest.cc const scoped_ptr<DiscardableMemory> discardable(CreateLockedMemory(size)); discardable 150 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(IsRegistered(discardable.get())); discardable 151 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(static_cast<void*>(NULL), Memory(discardable.get())); discardable 153 base/memory/discardable_memory_manager_unittest.cc EXPECT_FALSE(CanBePurged(discardable.get())); discardable 156 base/memory/discardable_memory_manager_unittest.cc discardable->Unlock(); discardable 157 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(CanBePurged(discardable.get())); discardable 166 base/memory/discardable_memory_manager_unittest.cc EXPECT_EQ(DISCARDABLE_MEMORY_LOCK_STATUS_PURGED, discardable->Lock()); discardable 167 base/memory/discardable_memory_manager_unittest.cc EXPECT_FALSE(CanBePurged(discardable.get())); discardable 172 base/memory/discardable_memory_manager_unittest.cc const scoped_ptr<DiscardableMemory> discardable(CreateLockedMemory(size)); discardable 173 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(IsRegistered(discardable.get())); discardable 174 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(static_cast<void*>(NULL), Memory(discardable.get())); discardable 176 base/memory/discardable_memory_manager_unittest.cc EXPECT_FALSE(CanBePurged(discardable.get())); discardable 179 base/memory/discardable_memory_manager_unittest.cc discardable->Unlock(); discardable 180 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(CanBePurged(discardable.get())); discardable 186 base/memory/discardable_memory_manager_unittest.cc EXPECT_EQ(DISCARDABLE_MEMORY_LOCK_STATUS_PURGED, discardable->Lock()); discardable 187 base/memory/discardable_memory_manager_unittest.cc EXPECT_FALSE(CanBePurged(discardable.get())); discardable 193 base/memory/discardable_memory_manager_unittest.cc const scoped_ptr<DiscardableMemory> discardable(CreateLockedMemory(size)); discardable 194 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(IsRegistered(discardable.get())); discardable 195 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(static_cast<void*>(NULL), Memory(discardable.get())); discardable 266 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(DISCARDABLE_MEMORY_LOCK_STATUS_FAILED, discardable(2)->Lock()); discardable 267 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(DISCARDABLE_MEMORY_LOCK_STATUS_SUCCESS, discardable(1)->Lock()); discardable 269 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(static_cast<void*>(NULL), Memory(discardable(0))); discardable 280 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(DISCARDABLE_MEMORY_LOCK_STATUS_FAILED, discardable(2)->Lock()); discardable 281 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(DISCARDABLE_MEMORY_LOCK_STATUS_SUCCESS, discardable(1)->Lock()); discardable 283 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(static_cast<void*>(NULL), Memory(discardable(0))); discardable 296 base/memory/discardable_memory_manager_unittest.cc EXPECT_EQ(DISCARDABLE_MEMORY_LOCK_STATUS_SUCCESS, discardable(2)->Lock()); discardable 297 base/memory/discardable_memory_manager_unittest.cc EXPECT_EQ(DISCARDABLE_MEMORY_LOCK_STATUS_PURGED, discardable(1)->Lock()); discardable 299 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(static_cast<void*>(NULL), Memory(discardable(0))); discardable 312 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(static_cast<void*>(NULL), Memory(discardable(i))); discardable 314 base/memory/discardable_memory_manager_unittest.cc EXPECT_EQ(DISCARDABLE_MEMORY_LOCK_STATUS_PURGED, discardable(i)->Lock()); discardable 330 base/memory/discardable_memory_manager_unittest.cc const scoped_ptr<DiscardableMemory> discardable(CreateLockedMemory(size)); discardable 331 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(IsRegistered(discardable.get())); discardable 340 base/memory/discardable_memory_manager_unittest.cc const scoped_ptr<DiscardableMemory> discardable(CreateLockedMemory(size)); discardable 341 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(IsRegistered(discardable.get())); discardable 342 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(static_cast<void*>(NULL), Memory(discardable.get())); discardable 344 base/memory/discardable_memory_manager_unittest.cc EXPECT_FALSE(CanBePurged(discardable.get())); discardable 354 base/memory/discardable_memory_manager_unittest.cc const scoped_ptr<DiscardableMemory> discardable(CreateLockedMemory(size)); discardable 355 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(IsRegistered(discardable.get())); discardable 356 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(static_cast<void*>(NULL), Memory(discardable.get())); discardable 358 base/memory/discardable_memory_manager_unittest.cc EXPECT_FALSE(CanBePurged(discardable.get())); discardable 359 base/memory/discardable_memory_manager_unittest.cc discardable->Unlock(); discardable 360 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(CanBePurged(discardable.get())); discardable 362 base/memory/discardable_memory_manager_unittest.cc EXPECT_DEATH(discardable->Memory(), ".*Check failed.*"); discardable 384 base/memory/discardable_memory_manager_unittest.cc const scoped_ptr<DiscardableMemory> discardable(CreateLockedMemory(size)); discardable 385 base/memory/discardable_memory_manager_unittest.cc EXPECT_TRUE(IsRegistered(discardable.get())); discardable 386 base/memory/discardable_memory_manager_unittest.cc EXPECT_NE(static_cast<void*>(NULL), Memory(discardable.get())); discardable 387 base/memory/discardable_memory_manager_unittest.cc discardable->Unlock(); discardable 37 skia/ext/SkDiscardableMemory_chrome.cc scoped_ptr<base::DiscardableMemory> discardable( discardable 39 skia/ext/SkDiscardableMemory_chrome.cc if (!discardable) discardable 41 skia/ext/SkDiscardableMemory_chrome.cc return new SkDiscardableMemoryChrome(discardable.Pass());