OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_H_ | 5 #ifndef CC_TREES_PROXY_H_ |
6 #define CC_TREES_PROXY_H_ | 6 #define CC_TREES_PROXY_H_ |
7 | 7 |
| 8 #include <memory> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "base/logging.h" | 11 #include "base/logging.h" |
11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | |
13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "cc/base/cc_export.h" | 16 #include "cc/base/cc_export.h" |
17 #include "cc/input/top_controls_state.h" | 17 #include "cc/input/top_controls_state.h" |
18 #include "cc/scheduler/begin_frame_source.h" | 18 #include "cc/scheduler/begin_frame_source.h" |
19 #include "cc/trees/task_runner_provider.h" | 19 #include "cc/trees/task_runner_provider.h" |
20 | 20 |
21 namespace gfx { | 21 namespace gfx { |
22 class Rect; | 22 class Rect; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // scheduler. | 62 // scheduler. |
63 virtual void SetDeferCommits(bool defer_commits) = 0; | 63 virtual void SetDeferCommits(bool defer_commits) = 0; |
64 | 64 |
65 virtual void MainThreadHasStoppedFlinging() = 0; | 65 virtual void MainThreadHasStoppedFlinging() = 0; |
66 | 66 |
67 virtual bool CommitRequested() const = 0; | 67 virtual bool CommitRequested() const = 0; |
68 virtual bool BeginMainFrameRequested() const = 0; | 68 virtual bool BeginMainFrameRequested() const = 0; |
69 | 69 |
70 // Must be called before using the proxy. | 70 // Must be called before using the proxy. |
71 virtual void Start( | 71 virtual void Start( |
72 scoped_ptr<BeginFrameSource> external_begin_frame_source) = 0; | 72 std::unique_ptr<BeginFrameSource> external_begin_frame_source) = 0; |
73 virtual void Stop() = 0; // Must be called before deleting the proxy. | 73 virtual void Stop() = 0; // Must be called before deleting the proxy. |
74 | 74 |
75 virtual bool SupportsImplScrolling() const = 0; | 75 virtual bool SupportsImplScrolling() const = 0; |
76 | 76 |
77 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; | 77 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; |
78 | 78 |
79 virtual void SetAuthoritativeVSyncInterval( | 79 virtual void SetAuthoritativeVSyncInterval( |
80 const base::TimeDelta& interval) = 0; | 80 const base::TimeDelta& interval) = 0; |
81 | 81 |
82 virtual void UpdateTopControlsState(TopControlsState constraints, | 82 virtual void UpdateTopControlsState(TopControlsState constraints, |
83 TopControlsState current, | 83 TopControlsState current, |
84 bool animate) = 0; | 84 bool animate) = 0; |
85 | 85 |
86 virtual void SetOutputIsSecure(bool output_is_secure) = 0; | 86 virtual void SetOutputIsSecure(bool output_is_secure) = 0; |
87 | 87 |
88 // Testing hooks | 88 // Testing hooks |
89 virtual bool MainFrameWillHappenForTesting() = 0; | 89 virtual bool MainFrameWillHappenForTesting() = 0; |
90 }; | 90 }; |
91 | 91 |
92 } // namespace cc | 92 } // namespace cc |
93 | 93 |
94 #endif // CC_TREES_PROXY_H_ | 94 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |