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/debug/frame_timing_tracker.h" | 10 #include "cc/debug/frame_timing_tracker.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 private: | 86 private: |
87 friend class ProxyMainForTest; | 87 friend class ProxyMainForTest; |
88 | 88 |
89 // Proxy implementation. | 89 // Proxy implementation. |
90 void FinishAllRendering() override; | 90 void FinishAllRendering() override; |
91 bool IsStarted() const override; | 91 bool IsStarted() const override; |
92 bool CommitToActiveTree() const override; | 92 bool CommitToActiveTree() const override; |
93 void SetOutputSurface(OutputSurface* output_surface) override; | 93 void SetOutputSurface(OutputSurface* output_surface) override; |
94 void SetVisible(bool visible) override; | 94 void SetVisible(bool visible) override; |
95 void SetThrottleFrameProduction(bool throttle) override; | |
96 const RendererCapabilities& GetRendererCapabilities() const override; | 95 const RendererCapabilities& GetRendererCapabilities() const override; |
97 void SetNeedsAnimate() override; | 96 void SetNeedsAnimate() override; |
98 void SetNeedsUpdateLayers() override; | 97 void SetNeedsUpdateLayers() override; |
99 void SetNeedsCommit() override; | 98 void SetNeedsCommit() override; |
100 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; | 99 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; |
101 void SetNextCommitWaitsForActivation() override; | 100 void SetNextCommitWaitsForActivation() override; |
102 void NotifyInputThrottledUntilCommit() override; | 101 void NotifyInputThrottledUntilCommit() override; |
103 void SetDeferCommits(bool defer_commits) override; | 102 void SetDeferCommits(bool defer_commits) override; |
104 bool CommitRequested() const override; | 103 bool CommitRequested() const override; |
105 bool BeginMainFrameRequested() const override; | 104 bool BeginMainFrameRequested() const override; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 RendererCapabilities renderer_capabilities_; | 150 RendererCapabilities renderer_capabilities_; |
152 | 151 |
153 scoped_ptr<ChannelMain> channel_main_; | 152 scoped_ptr<ChannelMain> channel_main_; |
154 | 153 |
155 DISALLOW_COPY_AND_ASSIGN(ProxyMain); | 154 DISALLOW_COPY_AND_ASSIGN(ProxyMain); |
156 }; | 155 }; |
157 | 156 |
158 } // namespace cc | 157 } // namespace cc |
159 | 158 |
160 #endif // CC_TREES_PROXY_MAIN_H_ | 159 #endif // CC_TREES_PROXY_MAIN_H_ |
OLD | NEW |