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

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 1172583003: [DRAFT] Animations: Profile hash look-ups for external mutators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@implscroll
Patch Set: Created 5 years, 6 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/trees/layer_tree_host_impl.cc ('k') | cc/trees/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_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 gfx::SizeF ScrollableViewportSize() const; 243 gfx::SizeF ScrollableViewportSize() const;
244 244
245 gfx::Rect RootScrollLayerDeviceViewportBounds() const; 245 gfx::Rect RootScrollLayerDeviceViewportBounds() const;
246 246
247 LayerImpl* LayerById(int id) const; 247 LayerImpl* LayerById(int id) const;
248 248
249 // These should be called by LayerImpl's ctor/dtor. 249 // These should be called by LayerImpl's ctor/dtor.
250 void RegisterLayer(LayerImpl* layer); 250 void RegisterLayer(LayerImpl* layer);
251 void UnregisterLayer(LayerImpl* layer); 251 void UnregisterLayer(LayerImpl* layer);
252 252
253 base::TimeDelta find_layer_by_id_stats() const {
254 return find_layer_by_id_stats_;
255 }
256 void ClearStatsOnFrameEnd();
257
253 size_t NumLayers(); 258 size_t NumLayers();
254 259
255 AnimationRegistrar* GetAnimationRegistrar() const; 260 AnimationRegistrar* GetAnimationRegistrar() const;
256 261
257 void PushPersistedState(LayerTreeImpl* pending_tree); 262 void PushPersistedState(LayerTreeImpl* pending_tree);
258 263
259 void DidBecomeActive(); 264 void DidBecomeActive();
260 265
261 bool ContentsTexturesPurged() const; 266 bool ContentsTexturesPurged() const;
262 void SetContentsTexturesPurged(); 267 void SetContentsTexturesPurged();
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 LayerSelection selection_; 411 LayerSelection selection_;
407 412
408 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; 413 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_;
409 float min_page_scale_factor_; 414 float min_page_scale_factor_;
410 float max_page_scale_factor_; 415 float max_page_scale_factor_;
411 416
412 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_; 417 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_;
413 418
414 typedef base::hash_map<int, LayerImpl*> LayerIdMap; 419 typedef base::hash_map<int, LayerImpl*> LayerIdMap;
415 LayerIdMap layer_id_map_; 420 LayerIdMap layer_id_map_;
421 mutable base::TimeDelta find_layer_by_id_stats_;
416 422
417 std::vector<PictureLayerImpl*> picture_layers_; 423 std::vector<PictureLayerImpl*> picture_layers_;
418 std::vector<LayerImpl*> layers_with_copy_output_request_; 424 std::vector<LayerImpl*> layers_with_copy_output_request_;
419 425
420 // Persisted state for non-impl-side-painting. 426 // Persisted state for non-impl-side-painting.
421 int scrolling_layer_id_from_previous_tree_; 427 int scrolling_layer_id_from_previous_tree_;
422 428
423 // List of visible layers for the most recently prepared frame. 429 // List of visible layers for the most recently prepared frame.
424 LayerImplList render_surface_layer_list_; 430 LayerImplList render_surface_layer_list_;
425 // After drawing the |render_surface_layer_list_| the areas in this region 431 // After drawing the |render_surface_layer_list_| the areas in this region
(...skipping 30 matching lines...) Expand all
456 462
457 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 463 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
458 464
459 private: 465 private:
460 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 466 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
461 }; 467 };
462 468
463 } // namespace cc 469 } // namespace cc
464 470
465 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 471 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698