summaryrefslogtreecommitdiffstats
path: root/cc/resources
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-26 01:10:03 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-26 01:10:03 +0000
commit64d14dbce05bec0a23540e48638484bc1f996d4d (patch)
tree6d48e692858e3923df1732c2250509f0472db2ac /cc/resources
parent02b4cb9fe677f7bf228e17b4a040ac46561e034a (diff)
downloadchromium_src-64d14dbce05bec0a23540e48638484bc1f996d4d.zip
chromium_src-64d14dbce05bec0a23540e48638484bc1f996d4d.tar.gz
chromium_src-64d14dbce05bec0a23540e48638484bc1f996d4d.tar.bz2
cc: Remove PrioritizedResourceManager::ReduceWastedMemoryOnImplThread
This function and its plumbing was added for using PrioritizedResourceManager with impl-side painting. But we no longer do this outside of unit tests. And no unit tests rely on this. So just remove it. R=reveman@chromium.org,ccameron@chromium.org BUG= Review URL: https://codereview.chromium.org/45823002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231174 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources')
-rw-r--r--cc/resources/prioritized_resource_manager.cc12
-rw-r--r--cc/resources/prioritized_resource_manager.h4
2 files changed, 0 insertions, 16 deletions
diff --git a/cc/resources/prioritized_resource_manager.cc b/cc/resources/prioritized_resource_manager.cc
index 4743b9a..6c7682b 100644
--- a/cc/resources/prioritized_resource_manager.cc
+++ b/cc/resources/prioritized_resource_manager.cc
@@ -380,18 +380,6 @@ bool PrioritizedResourceManager::ReduceMemoryOnImplThread(
resource_provider);
}
-void PrioritizedResourceManager::ReduceWastedMemoryOnImplThread(
- ResourceProvider* resource_provider) {
- DCHECK(proxy_->IsImplThread());
- DCHECK(resource_provider);
- // If we are in the process of uploading a new frame then the backings at the
- // very end of the list are not sorted by priority. Sort them before doing the
- // eviction.
- if (backings_tail_not_sorted_)
- SortBackings();
- ReduceWastedMemory(resource_provider);
-}
-
void PrioritizedResourceManager::UnlinkAndClearEvictedBackings() {
DCHECK(proxy_->IsMainThread());
base::AutoLock scoped_lock(evicted_backings_lock_);
diff --git a/cc/resources/prioritized_resource_manager.h b/cc/resources/prioritized_resource_manager.h
index 07cc7cf..48b73c4 100644
--- a/cc/resources/prioritized_resource_manager.h
+++ b/cc/resources/prioritized_resource_manager.h
@@ -96,10 +96,6 @@ class CC_EXPORT PrioritizedResourceManager {
int priority_cutoff,
ResourceProvider* resource_provider);
- // Delete contents textures' backing resources that can be recycled. This
- // may be called on the impl thread while the main thread is running.
- void ReduceWastedMemoryOnImplThread(ResourceProvider* resource_provider);
-
// Returns true if there exist any textures that are linked to backings that
// have had their resources evicted. Only when we commit a tree that has no
// textures linked to evicted backings may we allow drawing. After an