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_IMPL_H_ | 5 #ifndef CC_TREES_PROXY_IMPL_H_ |
6 #define CC_TREES_PROXY_IMPL_H_ | 6 #define CC_TREES_PROXY_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 TaskRunnerProvider* task_runner_provider, | 29 TaskRunnerProvider* task_runner_provider, |
30 std::unique_ptr<BeginFrameSource> external_begin_frame_source); | 30 std::unique_ptr<BeginFrameSource> external_begin_frame_source); |
31 | 31 |
32 ~ProxyImpl() override; | 32 ~ProxyImpl() override; |
33 | 33 |
34 // Virtual for testing. | 34 // Virtual for testing. |
35 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, | 35 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, |
36 TopControlsState current, | 36 TopControlsState current, |
37 bool animate); | 37 bool animate); |
38 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface); | 38 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface); |
| 39 virtual void InitializeMutatorOnImpl( |
| 40 std::unique_ptr<LayerTreeMutator> mutator); |
39 virtual void MainThreadHasStoppedFlingingOnImpl(); | 41 virtual void MainThreadHasStoppedFlingingOnImpl(); |
40 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled); | 42 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled); |
41 virtual void SetDeferCommitsOnImpl(bool defer_commits) const; | 43 virtual void SetDeferCommitsOnImpl(bool defer_commits) const; |
42 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect); | 44 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect); |
43 virtual void SetNeedsCommitOnImpl(); | 45 virtual void SetNeedsCommitOnImpl(); |
44 virtual void BeginMainFrameAbortedOnImpl( | 46 virtual void BeginMainFrameAbortedOnImpl( |
45 CommitEarlyOutReason reason, | 47 CommitEarlyOutReason reason, |
46 base::TimeTicks main_thread_start_time); | 48 base::TimeTicks main_thread_start_time); |
47 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion); | 49 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion); |
48 virtual void SetVisibleOnImpl(bool visible); | 50 virtual void SetVisibleOnImpl(bool visible); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // Use accessors instead of this variable directly. | 166 // Use accessors instead of this variable directly. |
165 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; | 167 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; |
166 BlockedMainCommitOnly& blocked_main_commit(); | 168 BlockedMainCommitOnly& blocked_main_commit(); |
167 | 169 |
168 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); | 170 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); |
169 }; | 171 }; |
170 | 172 |
171 } // namespace cc | 173 } // namespace cc |
172 | 174 |
173 #endif // CC_TREES_PROXY_IMPL_H_ | 175 #endif // CC_TREES_PROXY_IMPL_H_ |
OLD | NEW |