OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #ifndef managed_memory_policy_h | 5 #ifndef CC_MANAGED_MEMORY_POLICY_H_ |
6 #define managed_memory_policy_h | 6 #define CC_MANAGED_MEMORY_POLICY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 struct CC_EXPORT ManagedMemoryPolicy { | 13 struct CC_EXPORT ManagedMemoryPolicy { |
14 ManagedMemoryPolicy(size_t bytesLimitWhenVisible); | 14 ManagedMemoryPolicy(size_t bytesLimitWhenVisible); |
15 ManagedMemoryPolicy(size_t bytesLimitWhenVisible, | 15 ManagedMemoryPolicy(size_t bytesLimitWhenVisible, |
16 int priorityCutoffWhenVisible, | 16 int priorityCutoffWhenVisible, |
17 size_t bytesLimitWhenNotVisible, | 17 size_t bytesLimitWhenNotVisible, |
18 int priorityCutoffWhenNotVisible); | 18 int priorityCutoffWhenNotVisible); |
19 bool operator==(const ManagedMemoryPolicy&) const; | 19 bool operator==(const ManagedMemoryPolicy&) const; |
20 bool operator!=(const ManagedMemoryPolicy&) const; | 20 bool operator!=(const ManagedMemoryPolicy&) const; |
21 | 21 |
22 size_t bytesLimitWhenVisible; | 22 size_t bytesLimitWhenVisible; |
23 int priorityCutoffWhenVisible; | 23 int priorityCutoffWhenVisible; |
24 size_t bytesLimitWhenNotVisible; | 24 size_t bytesLimitWhenNotVisible; |
25 int priorityCutoffWhenNotVisible; | 25 int priorityCutoffWhenNotVisible; |
26 }; | 26 }; |
27 | 27 |
28 } // namespace cc | 28 } // namespace cc |
29 | 29 |
30 #endif | 30 #endif // CC_MANAGED_MEMORY_POLICY_H_ |
OLD | NEW |