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

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

Issue 375093002: Initial attempt at counting layers in the compositor thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use LayerTreeImpl::layer_id_map_.size() directly Created 6 years, 5 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
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 <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 const LayerSelectionBound& focus); 269 const LayerSelectionBound& focus);
270 270
271 // Compute the current selection handle location and visbility with respect to 271 // Compute the current selection handle location and visbility with respect to
272 // the viewport. 272 // the viewport.
273 void GetViewportSelection(ViewportSelectionBound* anchor, 273 void GetViewportSelection(ViewportSelectionBound* anchor,
274 ViewportSelectionBound* focus); 274 ViewportSelectionBound* focus);
275 275
276 void RegisterPictureLayerImpl(PictureLayerImpl* layer); 276 void RegisterPictureLayerImpl(PictureLayerImpl* layer);
277 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); 277 void UnregisterPictureLayerImpl(PictureLayerImpl* layer);
278 278
279 size_t NumLayers();
280
279 protected: 281 protected:
280 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); 282 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl);
281 void ReleaseResourcesRecursive(LayerImpl* current); 283 void ReleaseResourcesRecursive(LayerImpl* current);
282 284
283 LayerTreeHostImpl* layer_tree_host_impl_; 285 LayerTreeHostImpl* layer_tree_host_impl_;
284 int source_frame_number_; 286 int source_frame_number_;
285 scoped_ptr<LayerImpl> root_layer_; 287 scoped_ptr<LayerImpl> root_layer_;
286 HeadsUpDisplayLayerImpl* hud_layer_; 288 HeadsUpDisplayLayerImpl* hud_layer_;
287 LayerImpl* currently_scrolling_layer_; 289 LayerImpl* currently_scrolling_layer_;
288 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; 290 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 336
335 int render_surface_layer_list_id_; 337 int render_surface_layer_list_id_;
336 338
337 private: 339 private:
338 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 340 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
339 }; 341 };
340 342
341 } // namespace cc 343 } // namespace cc
342 344
343 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 345 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698