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

Unified Diff: skia/ext/SkDiscardableMemory_chrome.cc

Issue 17106004: Add discardable memory emulation for non-android/mac platforms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix MemoryAfterUnlock test Created 7 years, 2 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
Index: skia/ext/SkDiscardableMemory_chrome.cc
diff --git a/skia/ext/SkDiscardableMemory_chrome.cc b/skia/ext/SkDiscardableMemory_chrome.cc
index 6639a5ac54ddf3ab77fae237f87e06513ade4c3e..886c9950b81b2d48b3a761f1fb2f9a99febd5be1 100644
--- a/skia/ext/SkDiscardableMemory_chrome.cc
+++ b/skia/ext/SkDiscardableMemory_chrome.cc
@@ -34,8 +34,6 @@ SkDiscardableMemoryChrome::SkDiscardableMemoryChrome(
}
SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) {
- if (!base::DiscardableMemory::Supported())
- return NULL;
scoped_ptr<base::DiscardableMemory> discardable(
base::DiscardableMemory::CreateLockedMemory(bytes));
if (!discardable)

Powered by Google App Engine
This is Rietveld 408576698