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

Side by Side Diff: cc/resources/prioritized_resource_manager.cc

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/prioritized_resource_manager.h" 5 #include "cc/resources/prioritized_resource_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "cc/prioritized_resource.h" 11 #include "cc/resources/prioritized_resource.h"
12 #include "cc/priority_calculator.h" 12 #include "cc/resources/priority_calculator.h"
13 #include "cc/trees/proxy.h" 13 #include "cc/trees/proxy.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 PrioritizedResourceManager::PrioritizedResourceManager(const Proxy* proxy) 17 PrioritizedResourceManager::PrioritizedResourceManager(const Proxy* proxy)
18 : m_proxy(proxy) 18 : m_proxy(proxy)
19 , m_maxMemoryLimitBytes(defaultMemoryAllocationLimit()) 19 , m_maxMemoryLimitBytes(defaultMemoryAllocationLimit())
20 , m_externalPriorityCutoff(PriorityCalculator::AllowEverythingCutoff()) 20 , m_externalPriorityCutoff(PriorityCalculator::AllowEverythingCutoff())
21 , m_memoryUseBytes(0) 21 , m_memoryUseBytes(0)
22 , m_memoryAboveCutoffBytes(0) 22 , m_memoryAboveCutoffBytes(0)
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 } 488 }
489 #endif 489 #endif
490 } 490 }
491 491
492 const Proxy* PrioritizedResourceManager::proxyForDebug() const 492 const Proxy* PrioritizedResourceManager::proxyForDebug() const
493 { 493 {
494 return m_proxy; 494 return m_proxy;
495 } 495 }
496 496
497 } // namespace cc 497 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/prioritized_resource_manager.h ('k') | cc/resources/prioritized_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698