| 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 "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/base/completion_event.h" | 10 #include "cc/base/completion_event.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 virtual void SetThrottleFrameProductionOnImpl(bool throttle) = 0; | 28 virtual void SetThrottleFrameProductionOnImpl(bool throttle) = 0; |
| 29 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, | 29 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, |
| 30 TopControlsState current, | 30 TopControlsState current, |
| 31 bool animate) = 0; | 31 bool animate) = 0; |
| 32 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) = 0; | 32 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) = 0; |
| 33 virtual void MainThreadHasStoppedFlingingOnImpl() = 0; | 33 virtual void MainThreadHasStoppedFlingingOnImpl() = 0; |
| 34 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) = 0; | 34 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) = 0; |
| 35 virtual void SetDeferCommitsOnImpl(bool defer_commits) const = 0; | 35 virtual void SetDeferCommitsOnImpl(bool defer_commits) const = 0; |
| 36 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) = 0; | 36 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) = 0; |
| 37 virtual void SetNeedsCommitOnImpl() = 0; | 37 virtual void SetNeedsCommitOnImpl() = 0; |
| 38 virtual void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) = 0; | |
| 39 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion) = 0; | 38 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion) = 0; |
| 40 virtual void SetVisibleOnImpl(bool visible) = 0; | 39 virtual void SetVisibleOnImpl(bool visible) = 0; |
| 41 virtual void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) = 0; | 40 virtual void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) = 0; |
| 42 virtual void FinishGLOnImpl(CompletionEvent* completion) = 0; | 41 virtual void FinishGLOnImpl(CompletionEvent* completion) = 0; |
| 43 virtual void MainFrameWillHappenOnImplForTesting( | 42 virtual void MainFrameWillHappenOnImplForTesting( |
| 44 CompletionEvent* completion, | 43 CompletionEvent* completion, |
| 45 bool* main_frame_will_happen) = 0; | 44 bool* main_frame_will_happen) = 0; |
| 45 virtual void BeginMainFrameAbortedOnImpl( |
| 46 CommitEarlyOutReason reason, |
| 47 base::TimeTicks main_thread_start_time) = 0; |
| 46 virtual void StartCommitOnImpl(CompletionEvent* completion, | 48 virtual void StartCommitOnImpl(CompletionEvent* completion, |
| 47 LayerTreeHost* layer_tree_host, | 49 LayerTreeHost* layer_tree_host, |
| 50 base::TimeTicks main_thread_start_time, |
| 48 bool hold_commit_for_activation) = 0; | 51 bool hold_commit_for_activation) = 0; |
| 49 virtual void InitializeImplOnImpl(CompletionEvent* completion, | 52 virtual void InitializeImplOnImpl(CompletionEvent* completion, |
| 50 LayerTreeHost* layer_tree_host) = 0; | 53 LayerTreeHost* layer_tree_host) = 0; |
| 51 virtual void LayerTreeHostClosedOnImpl(CompletionEvent* completion) = 0; | 54 virtual void LayerTreeHostClosedOnImpl(CompletionEvent* completion) = 0; |
| 52 | 55 |
| 53 // TODO(khushalsagar): Rename as GetWeakPtr() once ThreadProxy is split. | 56 // TODO(khushalsagar): Rename as GetWeakPtr() once ThreadProxy is split. |
| 54 virtual base::WeakPtr<ProxyImpl> GetImplWeakPtr() = 0; | 57 virtual base::WeakPtr<ProxyImpl> GetImplWeakPtr() = 0; |
| 55 | 58 |
| 56 protected: | 59 protected: |
| 57 virtual ~ProxyImpl() {} | 60 virtual ~ProxyImpl() {} |
| 58 }; | 61 }; |
| 59 | 62 |
| 60 } // namespace cc | 63 } // namespace cc |
| 61 | 64 |
| 62 #endif // CC_TREES_PROXY_IMPL_H_ | 65 #endif // CC_TREES_PROXY_IMPL_H_ |
| OLD | NEW |