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

Side by Side Diff: cc/resources/prioritized_resource.h

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months 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
« no previous file with comments | « cc/resources/picture_layer_tiling_set.cc ('k') | cc/resources/prioritized_resource.cc » ('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 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
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
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_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_set.cc ('k') | cc/resources/prioritized_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698