| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| 11 #include "cc/debug/micro_benchmark.h" | 11 #include "cc/debug/micro_benchmark.h" |
| 12 #include "cc/input/top_controls_state.h" | 12 #include "cc/input/browser_controls_state.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class TimeTicks; | 15 class TimeTicks; |
| 16 } // namespace base | 16 } // namespace base |
| 17 | 17 |
| 18 namespace gfx { | 18 namespace gfx { |
| 19 class Rect; | 19 class Rect; |
| 20 } // namespace gfx | 20 } // namespace gfx |
| 21 | 21 |
| 22 namespace cc { | 22 namespace cc { |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 // Input Handling --------------------------------------------- | 154 // Input Handling --------------------------------------------- |
| 155 | 155 |
| 156 // Notifies the compositor that input from the browser is being throttled till | 156 // Notifies the compositor that input from the browser is being throttled till |
| 157 // the next commit. The compositor will prioritize activation of the pending | 157 // the next commit. The compositor will prioritize activation of the pending |
| 158 // tree so a commit can be performed. | 158 // tree so a commit can be performed. |
| 159 virtual void NotifyInputThrottledUntilCommit() = 0; | 159 virtual void NotifyInputThrottledUntilCommit() = 0; |
| 160 | 160 |
| 161 // Sets the state of the top controls. (Used for URL bar animations on | 161 // Sets the state of the top controls. (Used for URL bar animations on |
| 162 // android). | 162 // android). |
| 163 virtual void UpdateTopControlsState(TopControlsState constraints, | 163 virtual void UpdateTopControlsState(BrowserControlsState constraints, |
| 164 TopControlsState current, | 164 BrowserControlsState current, |
| 165 bool animate) = 0; | 165 bool animate) = 0; |
| 166 | 166 |
| 167 // Returns a reference to the InputHandler used to respond to input events on | 167 // Returns a reference to the InputHandler used to respond to input events on |
| 168 // the compositor thread. | 168 // the compositor thread. |
| 169 virtual const base::WeakPtr<InputHandler>& GetInputHandler() const = 0; | 169 virtual const base::WeakPtr<InputHandler>& GetInputHandler() const = 0; |
| 170 | 170 |
| 171 // Informs the compositor that an active fling gesture being processed on the | 171 // Informs the compositor that an active fling gesture being processed on the |
| 172 // main thread has been finished. | 172 // main thread has been finished. |
| 173 virtual void DidStopFlinging() = 0; | 173 virtual void DidStopFlinging() = 0; |
| 174 | 174 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 198 virtual void SetNextCommitWaitsForActivation() = 0; | 198 virtual void SetNextCommitWaitsForActivation() = 0; |
| 199 | 199 |
| 200 // The LayerTreeHost tracks whether the content is suitable for Gpu raster. | 200 // The LayerTreeHost tracks whether the content is suitable for Gpu raster. |
| 201 // Calling this will reset it back to not suitable state. | 201 // Calling this will reset it back to not suitable state. |
| 202 virtual void ResetGpuRasterizationTracking() = 0; | 202 virtual void ResetGpuRasterizationTracking() = 0; |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 } // namespace cc | 205 } // namespace cc |
| 206 | 206 |
| 207 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 207 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |