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

Side by Side Diff: cc/layer_tree_impl.h

Issue 12212156: cc: Only allow trees created at the current viewport size to draw. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits and rebase to 182333 Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/layer_tree_impl.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_LAYER_TREE_IMPL_H_ 5 #ifndef CC_LAYER_TREE_IMPL_H_
6 #define CC_LAYER_TREE_IMPL_H_ 6 #define CC_LAYER_TREE_IMPL_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "cc/layer_impl.h" 9 #include "cc/layer_impl.h"
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 AnimationRegistrar* animationRegistrar() const; 172 AnimationRegistrar* animationRegistrar() const;
173 173
174 void PushPersistedState(LayerTreeImpl* pendingTree); 174 void PushPersistedState(LayerTreeImpl* pendingTree);
175 175
176 void DidBecomeActive(); 176 void DidBecomeActive();
177 177
178 bool ContentsTexturesPurged() const; 178 bool ContentsTexturesPurged() const;
179 void SetContentsTexturesPurged(); 179 void SetContentsTexturesPurged();
180 void ResetContentsTexturesPurged(); 180 void ResetContentsTexturesPurged();
181 181
182 // Set on the active tree when the viewport size recently changed
183 // and the active tree's size is now out of date.
184 bool ViewportSizeInvalid() const;
185 void SetViewportSizeInvalid();
186 void ResetViewportSizeInvalid();
187
182 // Useful for debug assertions, probably shouldn't be used for anything else. 188 // Useful for debug assertions, probably shouldn't be used for anything else.
183 Proxy* proxy() const; 189 Proxy* proxy() const;
184 190
185 protected: 191 protected:
186 LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); 192 LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl);
187 193
188 LayerTreeHostImpl* layer_tree_host_impl_; 194 LayerTreeHostImpl* layer_tree_host_impl_;
189 int source_frame_number_; 195 int source_frame_number_;
190 scoped_ptr<LayerImpl> root_layer_; 196 scoped_ptr<LayerImpl> root_layer_;
191 HeadsUpDisplayLayerImpl* hud_layer_; 197 HeadsUpDisplayLayerImpl* hud_layer_;
(...skipping 12 matching lines...) Expand all
204 LayerIdMap layer_id_map_; 210 LayerIdMap layer_id_map_;
205 211
206 // Persisted state for non-impl-side-painting. 212 // Persisted state for non-impl-side-painting.
207 int scrolling_layer_id_from_previous_tree_; 213 int scrolling_layer_id_from_previous_tree_;
208 214
209 // List of visible layers for the most recently prepared frame. Used for 215 // List of visible layers for the most recently prepared frame. Used for
210 // rendering and input event hit testing. 216 // rendering and input event hit testing.
211 LayerList render_surface_layer_list_; 217 LayerList render_surface_layer_list_;
212 218
213 bool contents_textures_purged_; 219 bool contents_textures_purged_;
220 bool viewport_size_invalid_;
214 bool needs_update_draw_properties_; 221 bool needs_update_draw_properties_;
215 222
216 // In impl-side painting mode, this is true when the tree may contain 223 // In impl-side painting mode, this is true when the tree may contain
217 // structural differences relative to the active tree. 224 // structural differences relative to the active tree.
218 bool needs_full_tree_sync_; 225 bool needs_full_tree_sync_;
219 226
220 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 227 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
221 }; 228 };
222 229
223 } 230 }
224 231
225 #endif // CC_LAYER_TREE_IMPL_H_ 232 #endif // CC_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698