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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 SwapPromiseManager* GetSwapPromiseManager(); | 129 SwapPromiseManager* GetSwapPromiseManager(); |
130 | 130 |
131 // Sets whether the content is suitable to use Gpu Rasterization. | 131 // Sets whether the content is suitable to use Gpu Rasterization. |
132 void SetHasGpuRasterizationTrigger(bool has_trigger); | 132 void SetHasGpuRasterizationTrigger(bool has_trigger); |
133 | 133 |
134 // Visibility and CompositorFrameSink ------------------------------- | 134 // Visibility and CompositorFrameSink ------------------------------- |
135 | 135 |
136 void SetVisible(bool visible); | 136 void SetVisible(bool visible); |
137 bool IsVisible() const; | 137 bool IsVisible() const; |
138 | 138 |
| 139 void SetIsFullscreen(bool is_fullscreen); |
| 140 |
139 // Called in response to an CompositorFrameSink request made to the client | 141 // Called in response to an CompositorFrameSink request made to the client |
140 // using LayerTreeHostClient::RequestNewCompositorFrameSink. The client will | 142 // using LayerTreeHostClient::RequestNewCompositorFrameSink. The client will |
141 // be informed of the CompositorFrameSink initialization status using | 143 // be informed of the CompositorFrameSink initialization status using |
142 // DidInitializaCompositorFrameSink or DidFailToInitializeCompositorFrameSink. | 144 // DidInitializaCompositorFrameSink or DidFailToInitializeCompositorFrameSink. |
143 // The request is completed when the host successfully initializes an | 145 // The request is completed when the host successfully initializes an |
144 // CompositorFrameSink. | 146 // CompositorFrameSink. |
145 void SetCompositorFrameSink( | 147 void SetCompositorFrameSink( |
146 std::unique_ptr<CompositorFrameSink> compositor_frame_sink); | 148 std::unique_ptr<CompositorFrameSink> compositor_frame_sink); |
147 | 149 |
148 // Forces the host to immediately release all references to the | 150 // Forces the host to immediately release all references to the |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 // contains the new CompositorFrameSink that is currently being initialized. | 546 // contains the new CompositorFrameSink that is currently being initialized. |
545 // If initialization is successful then |new_compositor_frame_sink_| replaces | 547 // If initialization is successful then |new_compositor_frame_sink_| replaces |
546 // |current_compositor_frame_sink_|. | 548 // |current_compositor_frame_sink_|. |
547 std::unique_ptr<CompositorFrameSink> new_compositor_frame_sink_; | 549 std::unique_ptr<CompositorFrameSink> new_compositor_frame_sink_; |
548 std::unique_ptr<CompositorFrameSink> current_compositor_frame_sink_; | 550 std::unique_ptr<CompositorFrameSink> current_compositor_frame_sink_; |
549 | 551 |
550 const LayerTreeSettings settings_; | 552 const LayerTreeSettings settings_; |
551 LayerTreeDebugState debug_state_; | 553 LayerTreeDebugState debug_state_; |
552 | 554 |
553 bool visible_ = false; | 555 bool visible_ = false; |
| 556 bool is_fullscreen_ = false; |
554 | 557 |
555 bool has_gpu_rasterization_trigger_ = false; | 558 bool has_gpu_rasterization_trigger_ = false; |
556 bool content_is_suitable_for_gpu_rasterization_ = true; | 559 bool content_is_suitable_for_gpu_rasterization_ = true; |
557 bool gpu_rasterization_histogram_recorded_ = false; | 560 bool gpu_rasterization_histogram_recorded_ = false; |
558 | 561 |
559 // If set, then page scale animation has completed, but the client hasn't been | 562 // If set, then page scale animation has completed, but the client hasn't been |
560 // notified about it yet. | 563 // notified about it yet. |
561 bool did_complete_scale_animation_ = false; | 564 bool did_complete_scale_animation_ = false; |
562 | 565 |
563 int id_; | 566 int id_; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 | 637 |
635 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>> | 638 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>> |
636 queued_image_decodes_; | 639 queued_image_decodes_; |
637 | 640 |
638 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 641 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
639 }; | 642 }; |
640 | 643 |
641 } // namespace cc | 644 } // namespace cc |
642 | 645 |
643 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 646 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |