OLD | NEW |
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 #ifndef CC_RESOURCES_PRIORITIZED_RESOURCE_H_ | 5 #ifndef CC_RESOURCES_PRIORITIZED_RESOURCE_H_ |
6 #define CC_RESOURCES_PRIORITIZED_RESOURCE_H_ | 6 #define CC_RESOURCES_PRIORITIZED_RESOURCE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
12 #include "cc/resources/priority_calculator.h" | |
13 #include "cc/resources/resource.h" | 12 #include "cc/resources/resource.h" |
14 #include "cc/resources/resource_provider.h" | 13 #include "cc/resources/resource_provider.h" |
15 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
16 #include "ui/gfx/size.h" | 15 #include "ui/gfx/geometry/size.h" |
17 #include "ui/gfx/vector2d.h" | 16 #include "ui/gfx/geometry/vector2d.h" |
18 | 17 |
19 namespace cc { | 18 namespace cc { |
20 | 19 |
21 class PrioritizedResourceManager; | 20 class PrioritizedResourceManager; |
22 class Proxy; | 21 class Proxy; |
23 | 22 |
24 class CC_EXPORT PrioritizedResource { | 23 class CC_EXPORT PrioritizedResource { |
25 public: | 24 public: |
26 static scoped_ptr<PrioritizedResource> Create( | 25 static scoped_ptr<PrioritizedResource> Create( |
27 PrioritizedResourceManager* manager, | 26 PrioritizedResourceManager* manager, |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 175 |
177 Backing* backing_; | 176 Backing* backing_; |
178 PrioritizedResourceManager* manager_; | 177 PrioritizedResourceManager* manager_; |
179 | 178 |
180 DISALLOW_COPY_AND_ASSIGN(PrioritizedResource); | 179 DISALLOW_COPY_AND_ASSIGN(PrioritizedResource); |
181 }; | 180 }; |
182 | 181 |
183 } // namespace cc | 182 } // namespace cc |
184 | 183 |
185 #endif // CC_RESOURCES_PRIORITIZED_RESOURCE_H_ | 184 #endif // CC_RESOURCES_PRIORITIZED_RESOURCE_H_ |
OLD | NEW |