OLD | NEW |
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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 332 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
333 | 333 |
334 // Call this function when you expect there to be a swap buffer. | 334 // Call this function when you expect there to be a swap buffer. |
335 // See swap_promise.h for how to use SwapPromise. | 335 // See swap_promise.h for how to use SwapPromise. |
336 void QueueSwapPromise(std::unique_ptr<SwapPromise> swap_promise); | 336 void QueueSwapPromise(std::unique_ptr<SwapPromise> swap_promise); |
337 | 337 |
338 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 338 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
339 | 339 |
340 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } | 340 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } |
341 | 341 |
| 342 uint32_t surface_client_id() const { return surface_client_id_; } |
342 void set_surface_client_id(uint32_t client_id); | 343 void set_surface_client_id(uint32_t client_id); |
343 SurfaceSequence CreateSurfaceSequence(); | 344 SurfaceSequence CreateSurfaceSequence(); |
344 | 345 |
345 PropertyTrees* property_trees() { return &property_trees_; } | 346 PropertyTrees* property_trees() { return &property_trees_; } |
346 bool needs_meta_info_recomputation() { | 347 bool needs_meta_info_recomputation() { |
347 return needs_meta_info_recomputation_; | 348 return needs_meta_info_recomputation_; |
348 } | 349 } |
349 | 350 |
350 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator); | 351 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator); |
351 | 352 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 uint32_t surface_client_id_; | 607 uint32_t surface_client_id_; |
607 uint32_t next_surface_sequence_; | 608 uint32_t next_surface_sequence_; |
608 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; | 609 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; |
609 | 610 |
610 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 611 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
611 }; | 612 }; |
612 | 613 |
613 } // namespace cc | 614 } // namespace cc |
614 | 615 |
615 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 616 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |