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

Unified Diff: skia/ext/SkDiscardableMemory_chrome.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 | « content/renderer/render_thread_impl.cc ('k') | webkit/child/web_discardable_memory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/SkDiscardableMemory_chrome.cc
diff --git a/skia/ext/SkDiscardableMemory_chrome.cc b/skia/ext/SkDiscardableMemory_chrome.cc
index 886c9950b81b2d48b3a761f1fb2f9a99febd5be1..710310058f45e74ef60c57721cc70905acec3815 100644
--- a/skia/ext/SkDiscardableMemory_chrome.cc
+++ b/skia/ext/SkDiscardableMemory_chrome.cc
@@ -7,11 +7,11 @@
SkDiscardableMemoryChrome::~SkDiscardableMemoryChrome() {}
bool SkDiscardableMemoryChrome::lock() {
- const base::LockDiscardableMemoryStatus status = discardable_->Lock();
+ const 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 | « content/renderer/render_thread_impl.cc ('k') | webkit/child/web_discardable_memory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698