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