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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 10 matching lines...) Expand all Loading... | |
21 namespace gfx { | 21 namespace gfx { |
22 class Rect; | 22 class Rect; |
23 class Vector2d; | 23 class Vector2d; |
24 } | 24 } |
25 | 25 |
26 namespace cc { | 26 namespace cc { |
27 class LayerTreeDebugState; | 27 class LayerTreeDebugState; |
28 class OutputSurface; | 28 class OutputSurface; |
29 struct RendererCapabilities; | 29 struct RendererCapabilities; |
30 | 30 |
31 // Abstract class responsible for proxying commands from the main-thread side of | 31 // Abstract interface responsible for proxying commands from the main-thread |
32 // the compositor over to the compositor implementation. | 32 // side of the compositor over to the compositor implementation. |
33 class CC_EXPORT Proxy : public TaskRunnerProvider { | 33 class CC_EXPORT Proxy { |
34 public: | 34 public: |
35 ~Proxy() override; | |
36 | |
37 virtual void FinishAllRendering() = 0; | 35 virtual void FinishAllRendering() = 0; |
38 | 36 |
39 virtual bool IsStarted() const = 0; | 37 virtual bool IsStarted() const = 0; |
40 virtual bool CommitToActiveTree() const = 0; | 38 virtual bool CommitToActiveTree() const = 0; |
41 | 39 |
42 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted | 40 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted |
43 // with the result of this function. | 41 // with the result of this function. |
44 virtual void SetOutputSurface(OutputSurface* output_surface) = 0; | 42 virtual void SetOutputSurface(OutputSurface* output_surface) = 0; |
45 | 43 |
46 virtual void ReleaseOutputSurface() = 0; | 44 virtual void ReleaseOutputSurface() = 0; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 virtual void SetAuthoritativeVSyncInterval( | 77 virtual void SetAuthoritativeVSyncInterval( |
80 const base::TimeDelta& interval) = 0; | 78 const base::TimeDelta& interval) = 0; |
81 | 79 |
82 virtual void UpdateTopControlsState(TopControlsState constraints, | 80 virtual void UpdateTopControlsState(TopControlsState constraints, |
83 TopControlsState current, | 81 TopControlsState current, |
84 bool animate) = 0; | 82 bool animate) = 0; |
85 | 83 |
86 // Testing hooks | 84 // Testing hooks |
87 virtual bool MainFrameWillHappenForTesting() = 0; | 85 virtual bool MainFrameWillHappenForTesting() = 0; |
88 | 86 |
89 protected: | 87 virtual ~Proxy() {} |
vmpstr
2015/11/10 21:59:34
dtors should be at the top.
Khushal
2015/11/10 23:34:03
Done.
| |
90 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | |
91 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | |
92 | |
93 private: | |
94 DISALLOW_COPY_AND_ASSIGN(Proxy); | |
95 }; | 88 }; |
96 | 89 |
97 } // namespace cc | 90 } // namespace cc |
98 | 91 |
99 #endif // CC_TREES_PROXY_H_ | 92 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |