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

Side by Side Diff: cc/managed_memory_policy.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layer_updater.h ('k') | cc/math_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 managed_memory_policy_h
6 #define managed_memory_policy_h 6 #define managed_memory_policy_h
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/cc_export.h"
9 10
10 namespace cc { 11 namespace cc {
11 12
12 struct ManagedMemoryPolicy { 13 struct CC_EXPORT ManagedMemoryPolicy {
13 ManagedMemoryPolicy(size_t bytesLimitWhenVisible); 14 ManagedMemoryPolicy(size_t bytesLimitWhenVisible);
14 ManagedMemoryPolicy(size_t bytesLimitWhenVisible, 15 ManagedMemoryPolicy(size_t bytesLimitWhenVisible,
15 int priorityCutoffWhenVisible, 16 int priorityCutoffWhenVisible,
16 size_t bytesLimitWhenNotVisible, 17 size_t bytesLimitWhenNotVisible,
17 int priorityCutoffWhenNotVisible); 18 int priorityCutoffWhenNotVisible);
18 bool operator==(const ManagedMemoryPolicy&) const; 19 bool operator==(const ManagedMemoryPolicy&) const;
19 bool operator!=(const ManagedMemoryPolicy&) const; 20 bool operator!=(const ManagedMemoryPolicy&) const;
20 21
21 size_t bytesLimitWhenVisible; 22 size_t bytesLimitWhenVisible;
22 int priorityCutoffWhenVisible; 23 int priorityCutoffWhenVisible;
23 size_t bytesLimitWhenNotVisible; 24 size_t bytesLimitWhenNotVisible;
24 int priorityCutoffWhenNotVisible; 25 int priorityCutoffWhenNotVisible;
25 }; 26 };
26 27
27 } // namespace cc 28 } // namespace cc
28 29
29 #endif 30 #endif
OLDNEW
« no previous file with comments | « cc/layer_updater.h ('k') | cc/math_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698