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

Unified Diff: cc/prioritized_resource_unittest.cc

Issue 11363254: Set contents texture manager's limit to something reasonable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « cc/prioritized_resource_manager.cc ('k') | cc/resource_update_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/prioritized_resource_unittest.cc
diff --git a/cc/prioritized_resource_unittest.cc b/cc/prioritized_resource_unittest.cc
index a561f76880cdfa3a7098c96589481a71722f7cab..f418122ff37c4d17fa7ed30d5346ff9af5f0cbc1 100644
--- a/cc/prioritized_resource_unittest.cc
+++ b/cc/prioritized_resource_unittest.cc
@@ -41,7 +41,9 @@ public:
scoped_ptr<PrioritizedResourceManager> createManager(size_t maxTextures)
{
- return PrioritizedResourceManager::create(texturesMemorySize(maxTextures), 1024, 0, &m_proxy);
+ scoped_ptr<PrioritizedResourceManager> manager = PrioritizedResourceManager::create(0, &m_proxy);
+ manager->setMaxMemoryLimitBytes(texturesMemorySize(maxTextures));
+ return manager.Pass();
}
bool validateTexture(scoped_ptr<PrioritizedResource>& texture, bool requestLate)
« no previous file with comments | « cc/prioritized_resource_manager.cc ('k') | cc/resource_update_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698