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

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

Issue 1430363002: List all child surfaces (including occluded) in CompositorFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 void UnregisterScrollbar(ScrollbarLayerImplBase* scrollbar_layer); 326 void UnregisterScrollbar(ScrollbarLayerImplBase* scrollbar_layer);
327 ScrollbarSet ScrollbarsFor(int scroll_layer_id) const; 327 ScrollbarSet ScrollbarsFor(int scroll_layer_id) const;
328 328
329 void RegisterScrollLayer(LayerImpl* layer); 329 void RegisterScrollLayer(LayerImpl* layer);
330 void UnregisterScrollLayer(LayerImpl* layer); 330 void UnregisterScrollLayer(LayerImpl* layer);
331 331
332 void AddLayerWithCopyOutputRequest(LayerImpl* layer); 332 void AddLayerWithCopyOutputRequest(LayerImpl* layer);
333 void RemoveLayerWithCopyOutputRequest(LayerImpl* layer); 333 void RemoveLayerWithCopyOutputRequest(LayerImpl* layer);
334 const std::vector<LayerImpl*>& LayersWithCopyOutputRequest() const; 334 const std::vector<LayerImpl*>& LayersWithCopyOutputRequest() const;
335 335
336 void AddSurfaceLayer(LayerImpl* layer);
337 void RemoveSurfaceLayer(LayerImpl* layer);
338 const std::vector<LayerImpl*>& SurfaceLayers() const {
339 return surface_layers_;
340 }
341
336 int current_render_surface_list_id() const { 342 int current_render_surface_list_id() const {
337 return render_surface_layer_list_id_; 343 return render_surface_layer_list_id_;
338 } 344 }
339 345
340 LayerImpl* FindFirstScrollingLayerThatIsHitByPoint( 346 LayerImpl* FindFirstScrollingLayerThatIsHitByPoint(
341 const gfx::PointF& screen_space_point); 347 const gfx::PointF& screen_space_point);
342 348
343 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point); 349 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point);
344 350
345 LayerImpl* FindLayerWithWheelHandlerThatIsHitByPoint( 351 LayerImpl* FindLayerWithWheelHandlerThatIsHitByPoint(
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 base::hash_map<int, int> clip_scroll_map_; 462 base::hash_map<int, int> clip_scroll_map_;
457 463
458 // Maps scroll layer ids to scrollbar layer ids. For each scroll layer, there 464 // Maps scroll layer ids to scrollbar layer ids. For each scroll layer, there
459 // may be 1 or 2 scrollbar layers (for vertical and horizontal). (This is 465 // may be 1 or 2 scrollbar layers (for vertical and horizontal). (This is
460 // derived from ScrollbarLayerImplBase::scroll_layer_id_ and exists to avoid 466 // derived from ScrollbarLayerImplBase::scroll_layer_id_ and exists to avoid
461 // O(n) walks.) 467 // O(n) walks.)
462 std::multimap<int, int> scrollbar_map_; 468 std::multimap<int, int> scrollbar_map_;
463 469
464 std::vector<PictureLayerImpl*> picture_layers_; 470 std::vector<PictureLayerImpl*> picture_layers_;
465 std::vector<LayerImpl*> layers_with_copy_output_request_; 471 std::vector<LayerImpl*> layers_with_copy_output_request_;
472 std::vector<LayerImpl*> surface_layers_;
466 473
467 // List of visible layers for the most recently prepared frame. 474 // List of visible layers for the most recently prepared frame.
468 LayerImplList render_surface_layer_list_; 475 LayerImplList render_surface_layer_list_;
469 // After drawing the |render_surface_layer_list_| the areas in this region 476 // After drawing the |render_surface_layer_list_| the areas in this region
470 // would not be fully covered by opaque content. 477 // would not be fully covered by opaque content.
471 Region unoccluded_screen_space_region_; 478 Region unoccluded_screen_space_region_;
472 479
473 bool viewport_size_invalid_; 480 bool viewport_size_invalid_;
474 bool needs_update_draw_properties_; 481 bool needs_update_draw_properties_;
475 482
(...skipping 24 matching lines...) Expand all
500 507
501 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 508 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
502 509
503 private: 510 private:
504 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 511 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
505 }; 512 };
506 513
507 } // namespace cc 514 } // namespace cc
508 515
509 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 516 #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