| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/memory/discardable_memory_ashmem.h" | 5 #include "base/memory/discardable_memory_ashmem.h" |
| 6 | 6 |
| 7 #include "base/memory/discardable_memory_ashmem_allocator.h" | 7 #include "base/memory/discardable_memory_ashmem_allocator.h" |
| 8 | 8 |
| 9 namespace base { | 9 namespace base { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 void DiscardableMemoryAshmem::ReleaseLock() { | 66 void DiscardableMemoryAshmem::ReleaseLock() { |
| 67 ashmem_chunk_->Unlock(); | 67 ashmem_chunk_->Unlock(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void DiscardableMemoryAshmem::Purge() { | 70 void DiscardableMemoryAshmem::Purge() { |
| 71 ashmem_chunk_.reset(); | 71 ashmem_chunk_.reset(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 bool DiscardableMemoryAshmem::IsMemoryResident() const { | |
| 75 return true; | |
| 76 } | |
| 77 | |
| 78 } // namespace internal | 74 } // namespace internal |
| 79 } // namespace base | 75 } // namespace base |
| OLD | NEW |