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

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

Issue 1887703002: cc: Add a main thread LayerListIterator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: For testing only Created 4 years, 8 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/layers/layer_list_iterator_unittest.cc ('k') | cc/trees/layer_tree_host.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 13 matching lines...) Expand all
24 #include "cc/base/cc_export.h" 24 #include "cc/base/cc_export.h"
25 #include "cc/debug/frame_timing_tracker.h" 25 #include "cc/debug/frame_timing_tracker.h"
26 #include "cc/debug/micro_benchmark.h" 26 #include "cc/debug/micro_benchmark.h"
27 #include "cc/debug/micro_benchmark_controller.h" 27 #include "cc/debug/micro_benchmark_controller.h"
28 #include "cc/input/event_listener_properties.h" 28 #include "cc/input/event_listener_properties.h"
29 #include "cc/input/input_handler.h" 29 #include "cc/input/input_handler.h"
30 #include "cc/input/layer_selection_bound.h" 30 #include "cc/input/layer_selection_bound.h"
31 #include "cc/input/scrollbar.h" 31 #include "cc/input/scrollbar.h"
32 #include "cc/input/top_controls_state.h" 32 #include "cc/input/top_controls_state.h"
33 #include "cc/layers/layer_collections.h" 33 #include "cc/layers/layer_collections.h"
34 #include "cc/layers/layer_list_iterator.h"
34 #include "cc/output/output_surface.h" 35 #include "cc/output/output_surface.h"
35 #include "cc/output/renderer_capabilities.h" 36 #include "cc/output/renderer_capabilities.h"
36 #include "cc/output/swap_promise.h" 37 #include "cc/output/swap_promise.h"
37 #include "cc/resources/resource_format.h" 38 #include "cc/resources/resource_format.h"
38 #include "cc/resources/scoped_ui_resource.h" 39 #include "cc/resources/scoped_ui_resource.h"
39 #include "cc/surfaces/surface_sequence.h" 40 #include "cc/surfaces/surface_sequence.h"
40 #include "cc/trees/compositor_mode.h" 41 #include "cc/trees/compositor_mode.h"
41 #include "cc/trees/layer_tree_host_client.h" 42 #include "cc/trees/layer_tree_host_client.h"
42 #include "cc/trees/layer_tree_settings.h" 43 #include "cc/trees/layer_tree_settings.h"
43 #include "cc/trees/mutator_host_client.h" 44 #include "cc/trees/mutator_host_client.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 void DidInitializeOutputSurface(); 141 void DidInitializeOutputSurface();
141 void DidFailToInitializeOutputSurface(); 142 void DidFailToInitializeOutputSurface();
142 virtual std::unique_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( 143 virtual std::unique_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl(
143 LayerTreeHostImplClient* client); 144 LayerTreeHostImplClient* client);
144 void DidLoseOutputSurface(); 145 void DidLoseOutputSurface();
145 bool output_surface_lost() const { return output_surface_lost_; } 146 bool output_surface_lost() const { return output_surface_lost_; }
146 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } 147 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); }
147 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } 148 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); }
148 bool UpdateLayers(); 149 bool UpdateLayers();
149 150
151 LayerListIterator<Layer> begin();
152 LayerListIterator<Layer> end();
153 LayerListReverseIterator<Layer> rbegin();
154 LayerListReverseIterator<Layer> rend();
155
150 // Called when the compositor completed page scale animation. 156 // Called when the compositor completed page scale animation.
151 void DidCompletePageScaleAnimation(); 157 void DidCompletePageScaleAnimation();
152 158
153 LayerTreeHostClient* client() { return client_; } 159 LayerTreeHostClient* client() { return client_; }
154 const base::WeakPtr<InputHandler>& GetInputHandler() { 160 const base::WeakPtr<InputHandler>& GetInputHandler() {
155 return input_handler_weak_ptr_; 161 return input_handler_weak_ptr_;
156 } 162 }
157 163
158 void NotifyInputThrottledUntilCommit(); 164 void NotifyInputThrottledUntilCommit();
159 165
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 599
594 uint32_t surface_id_namespace_; 600 uint32_t surface_id_namespace_;
595 uint32_t next_surface_sequence_; 601 uint32_t next_surface_sequence_;
596 602
597 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 603 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
598 }; 604 };
599 605
600 } // namespace cc 606 } // namespace cc
601 607
602 #endif // CC_TREES_LAYER_TREE_HOST_H_ 608 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_list_iterator_unittest.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698