summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-30 16:33:30 +0000
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-30 16:33:30 +0000
commitcef6c76ff40bf74edbcf8df0a19dc0c08fb7daca (patch)
tree56d1e3257dc3bea4d04dbaa36b84b4fd655c7c50 /skia
parent1bc20daed0a965dadbe4a140ee53057a1dac280a (diff)
downloadchromium_src-cef6c76ff40bf74edbcf8df0a19dc0c08fb7daca.zip
chromium_src-cef6c76ff40bf74edbcf8df0a19dc0c08fb7daca.tar.gz
chromium_src-cef6c76ff40bf74edbcf8df0a19dc0c08fb7daca.tar.bz2
Add discardable memory emulation for non-android/mac platforms
Adds support for emulated discardable memory. The memory is managed by a provider which listens for memory pressure notifications from the platform. Currently, only android pushes these notifications, but in future patches, we will apply pressure on other platforms in certain situations (e.g., when a tab gets backgrounded). BUG=237681 Review URL: https://codereview.chromium.org/17106004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/SkDiscardableMemory_chrome.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/skia/ext/SkDiscardableMemory_chrome.cc b/skia/ext/SkDiscardableMemory_chrome.cc
index 6639a5a..886c995 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)