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

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

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