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" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 int priority_at_last_priority_update_; | 135 int priority_at_last_priority_update_; |
136 bool was_above_priority_cutoff_at_last_priority_update_; | 136 bool was_above_priority_cutoff_at_last_priority_update_; |
137 | 137 |
138 // Set if this is currently-drawing impl tree. | 138 // Set if this is currently-drawing impl tree. |
139 bool in_drawing_impl_tree_; | 139 bool in_drawing_impl_tree_; |
140 // Set if this is in the parent compositor. | 140 // Set if this is in the parent compositor. |
141 bool in_parent_compositor_; | 141 bool in_parent_compositor_; |
142 | 142 |
143 bool resource_has_been_deleted_; | 143 bool resource_has_been_deleted_; |
144 | 144 |
145 #if DCHECK_IS_ON | 145 #if DCHECK_IS_ON() |
146 ResourceProvider* resource_provider_; | 146 ResourceProvider* resource_provider_; |
147 #endif | 147 #endif |
148 DISALLOW_COPY_AND_ASSIGN(Backing); | 148 DISALLOW_COPY_AND_ASSIGN(Backing); |
149 }; | 149 }; |
150 | 150 |
151 PrioritizedResource(PrioritizedResourceManager* resource_manager, | 151 PrioritizedResource(PrioritizedResourceManager* resource_manager, |
152 const gfx::Size& size, | 152 const gfx::Size& size, |
153 ResourceFormat format); | 153 ResourceFormat format); |
154 | 154 |
155 bool is_above_priority_cutoff() { return is_above_priority_cutoff_; } | 155 bool is_above_priority_cutoff() { return is_above_priority_cutoff_; } |
(...skipping 19 matching lines...) Expand all Loading... |
175 | 175 |
176 Backing* backing_; | 176 Backing* backing_; |
177 PrioritizedResourceManager* manager_; | 177 PrioritizedResourceManager* manager_; |
178 | 178 |
179 DISALLOW_COPY_AND_ASSIGN(PrioritizedResource); | 179 DISALLOW_COPY_AND_ASSIGN(PrioritizedResource); |
180 }; | 180 }; |
181 | 181 |
182 } // namespace cc | 182 } // namespace cc |
183 | 183 |
184 #endif // CC_RESOURCES_PRIORITIZED_RESOURCE_H_ | 184 #endif // CC_RESOURCES_PRIORITIZED_RESOURCE_H_ |
OLD | NEW |