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

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

Issue 672283003: cc: ReadyToDraw notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean-ups Created 6 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
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_TILE_H_ 5 #ifndef CC_RESOURCES_TILE_H_
6 #define CC_RESOURCES_TILE_H_ 6 #define CC_RESOURCES_TILE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "cc/base/ref_counted_managed.h" 9 #include "cc/base/ref_counted_managed.h"
10 #include "cc/resources/managed_tile_state.h" 10 #include "cc/resources/managed_tile_state.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 NOTREACHED(); 82 NOTREACHED();
83 return false; 83 return false;
84 } 84 }
85 } 85 }
86 86
87 // TODO(vmpstr): Move this to the iterators. 87 // TODO(vmpstr): Move this to the iterators.
88 bool required_for_activation() const { return required_for_activation_; } 88 bool required_for_activation() const { return required_for_activation_; }
89 void set_required_for_activation(bool is_required) { 89 void set_required_for_activation(bool is_required) {
90 required_for_activation_ = is_required; 90 required_for_activation_ = is_required;
91 } 91 }
92 bool required_for_draw() const { return required_for_draw_; }
93 void set_required_for_draw(bool is_required) {
94 required_for_draw_ = is_required;
95 }
92 96
93 bool use_picture_analysis() const { 97 bool use_picture_analysis() const {
94 return !!(flags_ & USE_PICTURE_ANALYSIS); 98 return !!(flags_ & USE_PICTURE_ANALYSIS);
95 } 99 }
96 100
97 bool HasResources() const { return managed_state_.draw_info.has_resource(); } 101 bool HasResources() const { return managed_state_.draw_info.has_resource(); }
98 bool NeedsRaster() const { 102 bool NeedsRaster() const {
99 return managed_state_.draw_info.mode() == 103 return managed_state_.draw_info.mode() ==
100 ManagedTileState::DrawInfo::PICTURE_PILE_MODE || 104 ManagedTileState::DrawInfo::PICTURE_PILE_MODE ||
101 !managed_state_.draw_info.IsReadyToDraw(); 105 !managed_state_.draw_info.IsReadyToDraw();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 175
172 TilePriority priority_[NUM_TREES]; 176 TilePriority priority_[NUM_TREES];
173 ManagedTileState managed_state_; 177 ManagedTileState managed_state_;
174 int layer_id_; 178 int layer_id_;
175 int source_frame_number_; 179 int source_frame_number_;
176 int flags_; 180 int flags_;
177 bool is_shared_; 181 bool is_shared_;
178 int tiling_i_index_; 182 int tiling_i_index_;
179 int tiling_j_index_; 183 int tiling_j_index_;
180 bool required_for_activation_; 184 bool required_for_activation_;
185 bool required_for_draw_;
181 186
182 Id id_; 187 Id id_;
183 static Id s_next_id_; 188 static Id s_next_id_;
184 189
185 DISALLOW_COPY_AND_ASSIGN(Tile); 190 DISALLOW_COPY_AND_ASSIGN(Tile);
186 }; 191 };
187 192
188 } // namespace cc 193 } // namespace cc
189 194
190 #endif // CC_RESOURCES_TILE_H_ 195 #endif // CC_RESOURCES_TILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698