| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PROXY_MAIN_H_ | 5 #ifndef CC_TREES_PROXY_MAIN_H_ |
| 6 #define CC_TREES_PROXY_MAIN_H_ | 6 #define CC_TREES_PROXY_MAIN_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/input/top_controls_state.h" | 10 #include "cc/input/top_controls_state.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 } | 74 } |
| 75 | 75 |
| 76 protected: | 76 protected: |
| 77 ProxyMain(LayerTreeHost* layer_tree_host, | 77 ProxyMain(LayerTreeHost* layer_tree_host, |
| 78 TaskRunnerProvider* task_runner_provider); | 78 TaskRunnerProvider* task_runner_provider); |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 friend class ProxyMainForTest; | 81 friend class ProxyMainForTest; |
| 82 | 82 |
| 83 // Proxy implementation. | 83 // Proxy implementation. |
| 84 void FinishAllRendering() override; | |
| 85 bool IsStarted() const override; | 84 bool IsStarted() const override; |
| 86 bool CommitToActiveTree() const override; | 85 bool CommitToActiveTree() const override; |
| 87 void SetOutputSurface(OutputSurface* output_surface) override; | 86 void SetOutputSurface(OutputSurface* output_surface) override; |
| 88 void SetVisible(bool visible) override; | 87 void SetVisible(bool visible) override; |
| 89 const RendererCapabilities& GetRendererCapabilities() const override; | 88 const RendererCapabilities& GetRendererCapabilities() const override; |
| 90 void SetNeedsAnimate() override; | 89 void SetNeedsAnimate() override; |
| 91 void SetNeedsUpdateLayers() override; | 90 void SetNeedsUpdateLayers() override; |
| 92 void SetNeedsCommit() override; | 91 void SetNeedsCommit() override; |
| 93 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; | 92 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; |
| 94 void SetNextCommitWaitsForActivation() override; | 93 void SetNextCommitWaitsForActivation() override; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 RendererCapabilities renderer_capabilities_; | 143 RendererCapabilities renderer_capabilities_; |
| 145 | 144 |
| 146 std::unique_ptr<ChannelMain> channel_main_; | 145 std::unique_ptr<ChannelMain> channel_main_; |
| 147 | 146 |
| 148 DISALLOW_COPY_AND_ASSIGN(ProxyMain); | 147 DISALLOW_COPY_AND_ASSIGN(ProxyMain); |
| 149 }; | 148 }; |
| 150 | 149 |
| 151 } // namespace cc | 150 } // namespace cc |
| 152 | 151 |
| 153 #endif // CC_TREES_PROXY_MAIN_H_ | 152 #endif // CC_TREES_PROXY_MAIN_H_ |
| OLD | NEW |