Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Unified Diff: webkit/child/web_discardable_memory_impl.cc

Issue 114923005: base: Discardable memory types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add switches::kUseDiscardableMemory to kForwardSwitches Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/SkDiscardableMemory_chrome.cc ('k') | webkit/child/webkitplatformsupport_child_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/child/web_discardable_memory_impl.cc
diff --git a/webkit/child/web_discardable_memory_impl.cc b/webkit/child/web_discardable_memory_impl.cc
index 285f1b0de9a47dce20dedad2610ee2dca244ae96..ebf28e4d18f9b09941ccae8a7bfbba9537fd0aed 100644
--- a/webkit/child/web_discardable_memory_impl.cc
+++ b/webkit/child/web_discardable_memory_impl.cc
@@ -19,11 +19,11 @@ WebDiscardableMemoryImpl::CreateLockedMemory(size_t size) {
}
bool WebDiscardableMemoryImpl::lock() {
- base::LockDiscardableMemoryStatus status = discardable_->Lock();
+ base::DiscardableMemoryLockStatus status = discardable_->Lock();
switch (status) {
- case base::DISCARDABLE_MEMORY_SUCCESS:
+ case base::DISCARDABLE_MEMORY_LOCK_STATUS_SUCCESS:
return true;
- case base::DISCARDABLE_MEMORY_PURGED:
+ case base::DISCARDABLE_MEMORY_LOCK_STATUS_PURGED:
discardable_->Unlock();
return false;
default:
« no previous file with comments | « skia/ext/SkDiscardableMemory_chrome.cc ('k') | webkit/child/webkitplatformsupport_child_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698