| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 SwapPromiseManager* GetSwapPromiseManager(); | 130 SwapPromiseManager* GetSwapPromiseManager(); |
| 131 | 131 |
| 132 // Sets whether the content is suitable to use Gpu Rasterization. | 132 // Sets whether the content is suitable to use Gpu Rasterization. |
| 133 void SetHasGpuRasterizationTrigger(bool has_trigger); | 133 void SetHasGpuRasterizationTrigger(bool has_trigger); |
| 134 | 134 |
| 135 // Visibility and CompositorFrameSink ------------------------------- | 135 // Visibility and CompositorFrameSink ------------------------------- |
| 136 | 136 |
| 137 void SetVisible(bool visible); | 137 void SetVisible(bool visible); |
| 138 bool IsVisible() const; | 138 bool IsVisible() const; |
| 139 | 139 |
| 140 void SetIsFullscreen(bool is_fullscreen); |
| 141 |
| 140 // Called in response to an CompositorFrameSink request made to the client | 142 // Called in response to an CompositorFrameSink request made to the client |
| 141 // using LayerTreeHostClient::RequestNewCompositorFrameSink. The client will | 143 // using LayerTreeHostClient::RequestNewCompositorFrameSink. The client will |
| 142 // be informed of the CompositorFrameSink initialization status using | 144 // be informed of the CompositorFrameSink initialization status using |
| 143 // DidInitializaCompositorFrameSink or DidFailToInitializeCompositorFrameSink. | 145 // DidInitializaCompositorFrameSink or DidFailToInitializeCompositorFrameSink. |
| 144 // The request is completed when the host successfully initializes an | 146 // The request is completed when the host successfully initializes an |
| 145 // CompositorFrameSink. | 147 // CompositorFrameSink. |
| 146 void SetCompositorFrameSink( | 148 void SetCompositorFrameSink( |
| 147 std::unique_ptr<CompositorFrameSink> compositor_frame_sink); | 149 std::unique_ptr<CompositorFrameSink> compositor_frame_sink); |
| 148 | 150 |
| 149 // Forces the host to immediately release all references to the | 151 // Forces the host to immediately release all references to the |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 // contains the new CompositorFrameSink that is currently being initialized. | 533 // contains the new CompositorFrameSink that is currently being initialized. |
| 532 // If initialization is successful then |new_compositor_frame_sink_| replaces | 534 // If initialization is successful then |new_compositor_frame_sink_| replaces |
| 533 // |current_compositor_frame_sink_|. | 535 // |current_compositor_frame_sink_|. |
| 534 std::unique_ptr<CompositorFrameSink> new_compositor_frame_sink_; | 536 std::unique_ptr<CompositorFrameSink> new_compositor_frame_sink_; |
| 535 std::unique_ptr<CompositorFrameSink> current_compositor_frame_sink_; | 537 std::unique_ptr<CompositorFrameSink> current_compositor_frame_sink_; |
| 536 | 538 |
| 537 const LayerTreeSettings settings_; | 539 const LayerTreeSettings settings_; |
| 538 LayerTreeDebugState debug_state_; | 540 LayerTreeDebugState debug_state_; |
| 539 | 541 |
| 540 bool visible_ = false; | 542 bool visible_ = false; |
| 543 bool is_fullscreen_ = false; |
| 541 | 544 |
| 542 bool has_gpu_rasterization_trigger_ = false; | 545 bool has_gpu_rasterization_trigger_ = false; |
| 543 bool content_is_suitable_for_gpu_rasterization_ = true; | 546 bool content_is_suitable_for_gpu_rasterization_ = true; |
| 544 bool gpu_rasterization_histogram_recorded_ = false; | 547 bool gpu_rasterization_histogram_recorded_ = false; |
| 545 | 548 |
| 546 // If set, then page scale animation has completed, but the client hasn't been | 549 // If set, then page scale animation has completed, but the client hasn't been |
| 547 // notified about it yet. | 550 // notified about it yet. |
| 548 bool did_complete_scale_animation_ = false; | 551 bool did_complete_scale_animation_ = false; |
| 549 | 552 |
| 550 int id_; | 553 int id_; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 queued_image_decodes_; | 629 queued_image_decodes_; |
| 627 | 630 |
| 628 bool did_navigate_ = false; | 631 bool did_navigate_ = false; |
| 629 | 632 |
| 630 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 633 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 631 }; | 634 }; |
| 632 | 635 |
| 633 } // namespace cc | 636 } // namespace cc |
| 634 | 637 |
| 635 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 638 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |