| 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/logging.h" | 10 #include "base/logging.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 virtual bool CommitToActiveTree() const = 0; | 41 virtual bool CommitToActiveTree() const = 0; |
| 42 | 42 |
| 43 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted | 43 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted |
| 44 // with the result of this function. | 44 // with the result of this function. |
| 45 virtual void SetOutputSurface(OutputSurface* output_surface) = 0; | 45 virtual void SetOutputSurface(OutputSurface* output_surface) = 0; |
| 46 | 46 |
| 47 virtual void ReleaseOutputSurface() = 0; | 47 virtual void ReleaseOutputSurface() = 0; |
| 48 | 48 |
| 49 virtual void SetVisible(bool visible) = 0; | 49 virtual void SetVisible(bool visible) = 0; |
| 50 | 50 |
| 51 virtual void SetThrottleFrameProduction(bool throttle) = 0; | |
| 52 | |
| 53 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; | 51 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; |
| 54 | 52 |
| 55 virtual void SetNeedsAnimate() = 0; | 53 virtual void SetNeedsAnimate() = 0; |
| 56 virtual void SetNeedsUpdateLayers() = 0; | 54 virtual void SetNeedsUpdateLayers() = 0; |
| 57 virtual void SetNeedsCommit() = 0; | 55 virtual void SetNeedsCommit() = 0; |
| 58 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0; | 56 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0; |
| 59 virtual void SetNextCommitWaitsForActivation() = 0; | 57 virtual void SetNextCommitWaitsForActivation() = 0; |
| 60 | 58 |
| 61 virtual void NotifyInputThrottledUntilCommit() = 0; | 59 virtual void NotifyInputThrottledUntilCommit() = 0; |
| 62 | 60 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 85 TopControlsState current, | 83 TopControlsState current, |
| 86 bool animate) = 0; | 84 bool animate) = 0; |
| 87 | 85 |
| 88 // Testing hooks | 86 // Testing hooks |
| 89 virtual bool MainFrameWillHappenForTesting() = 0; | 87 virtual bool MainFrameWillHappenForTesting() = 0; |
| 90 }; | 88 }; |
| 91 | 89 |
| 92 } // namespace cc | 90 } // namespace cc |
| 93 | 91 |
| 94 #endif // CC_TREES_PROXY_H_ | 92 #endif // CC_TREES_PROXY_H_ |
| OLD | NEW |