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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual bool InitializeRenderer() = 0; | 69 virtual bool InitializeRenderer() = 0; |
70 | 70 |
71 // Attempts to recreate the context and layer renderer after a context lost. | 71 // Attempts to recreate the context and layer renderer after a context lost. |
72 // Returns false if the renderer couldn't be reinitialized. | 72 // Returns false if the renderer couldn't be reinitialized. |
73 virtual bool RecreateOutputSurface() = 0; | 73 virtual bool RecreateOutputSurface() = 0; |
74 | 74 |
75 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; | 75 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; |
76 | 76 |
77 virtual void SetNeedsAnimate() = 0; | 77 virtual void SetNeedsAnimate() = 0; |
78 virtual void SetNeedsCommit() = 0; | 78 virtual void SetNeedsCommit() = 0; |
79 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0; | 79 virtual void SetNeedsRedraw(gfx::Rect damage_rect) = 0; |
80 | 80 |
81 // Defers commits until it is reset. It is only supported when in threaded | 81 // Defers commits until it is reset. It is only supported when in threaded |
82 // mode. It's an error to make a sync call like CompositeAndReadback while | 82 // mode. It's an error to make a sync call like CompositeAndReadback while |
83 // commits are deferred. | 83 // commits are deferred. |
84 virtual void SetDeferCommits(bool defer_commits) = 0; | 84 virtual void SetDeferCommits(bool defer_commits) = 0; |
85 | 85 |
86 virtual void MainThreadHasStoppedFlinging() = 0; | 86 virtual void MainThreadHasStoppedFlinging() = 0; |
87 | 87 |
88 virtual bool CommitRequested() const = 0; | 88 virtual bool CommitRequested() const = 0; |
89 | 89 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 143 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
144 ~DebugScopedSetMainThreadBlocked() {} | 144 ~DebugScopedSetMainThreadBlocked() {} |
145 private: | 145 private: |
146 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 146 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
147 }; | 147 }; |
148 #endif | 148 #endif |
149 | 149 |
150 } // namespace cc | 150 } // namespace cc |
151 | 151 |
152 #endif // CC_TREES_PROXY_H_ | 152 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |