| 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_BLIMP_LAYER_TREE_HOST_REMOTE_H_ | 5 #ifndef CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ |
| 6 #define CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ | 6 #define CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 protected: | 99 protected: |
| 100 // Protected for testing. Allows tests to inject the LayerTree. | 100 // Protected for testing. Allows tests to inject the LayerTree. |
| 101 LayerTreeHostRemote(InitParams* params, | 101 LayerTreeHostRemote(InitParams* params, |
| 102 std::unique_ptr<LayerTree> layer_tree); | 102 std::unique_ptr<LayerTree> layer_tree); |
| 103 | 103 |
| 104 LayerTreeHostClient* client() const { return client_; } | 104 LayerTreeHostClient* client() const { return client_; } |
| 105 RemoteCompositorBridge* remote_compositor_bridge() const { | 105 RemoteCompositorBridge* remote_compositor_bridge() const { |
| 106 return remote_compositor_bridge_.get(); | 106 return remote_compositor_bridge_.get(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 virtual void DispatchDrawAndSwapCallbacks(); | 109 virtual void DispatchDrawAndSubmitCallbacks(); |
| 110 void SetTaskRunnerProviderForTesting( | 110 void SetTaskRunnerProviderForTesting( |
| 111 std::unique_ptr<TaskRunnerProvider> task_runner_provider); | 111 std::unique_ptr<TaskRunnerProvider> task_runner_provider); |
| 112 | 112 |
| 113 // RemoteCompositorBridgeClient implementation. | 113 // RemoteCompositorBridgeClient implementation. |
| 114 void BeginMainFrame() override; | 114 void BeginMainFrame() override; |
| 115 bool ApplyScrollAndScaleUpdateFromClient( | 115 bool ApplyScrollAndScaleUpdateFromClient( |
| 116 const ScrollOffsetMap& client_scroll_map, | 116 const ScrollOffsetMap& client_scroll_map, |
| 117 float client_page_scale) override; | 117 float client_page_scale) override; |
| 118 | 118 |
| 119 private: | 119 private: |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 SurfaceSequenceGenerator surface_sequence_generator_; | 173 SurfaceSequenceGenerator surface_sequence_generator_; |
| 174 | 174 |
| 175 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 175 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
| 176 | 176 |
| 177 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_; | 177 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_; |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 } // namespace cc | 180 } // namespace cc |
| 181 | 181 |
| 182 #endif // CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ | 182 #endif // CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ |
| OLD | NEW |