| 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 23 matching lines...) Expand all Loading... |
| 34 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) = 0; | 34 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) = 0; |
| 35 virtual void SetNeedsCommitOnImpl() = 0; | 35 virtual void SetNeedsCommitOnImpl() = 0; |
| 36 virtual void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) = 0; | 36 virtual void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) = 0; |
| 37 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion) = 0; | 37 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion) = 0; |
| 38 virtual void SetVisibleOnImpl(CompletionEvent* completion, bool visible) = 0; | 38 virtual void SetVisibleOnImpl(CompletionEvent* completion, bool visible) = 0; |
| 39 virtual void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) = 0; | 39 virtual void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) = 0; |
| 40 virtual void FinishGLOnImpl(CompletionEvent* completion) = 0; | 40 virtual void FinishGLOnImpl(CompletionEvent* completion) = 0; |
| 41 virtual void MainFrameWillHappenOnImplForTesting( | 41 virtual void MainFrameWillHappenOnImplForTesting( |
| 42 CompletionEvent* completion, | 42 CompletionEvent* completion, |
| 43 bool* main_frame_will_happen) = 0; | 43 bool* main_frame_will_happen) = 0; |
| 44 virtual void StartCommitOnImpl(CompletionEvent* completion) = 0; | 44 virtual void StartCommitOnImpl(CompletionEvent* completion, |
| 45 LayerTreeHost* layer_tree_host, |
| 46 bool hold_commit_for_activation) = 0; |
| 47 virtual void InitializeImplOnImpl(CompletionEvent* completion, |
| 48 LayerTreeHost* layer_tree_host) = 0; |
| 49 virtual void LayerTreeHostClosedOnImpl(CompletionEvent* completion) = 0; |
| 45 | 50 |
| 46 // TODO(khushalsagar): Rename as GetWeakPtr() once ThreadProxy is split. | 51 // TODO(khushalsagar): Rename as GetWeakPtr() once ThreadProxy is split. |
| 47 virtual base::WeakPtr<ProxyImpl> GetImplWeakPtr() = 0; | 52 virtual base::WeakPtr<ProxyImpl> GetImplWeakPtr() = 0; |
| 48 | 53 |
| 49 protected: | 54 protected: |
| 50 virtual ~ProxyImpl() {} | 55 virtual ~ProxyImpl() {} |
| 51 }; | 56 }; |
| 52 | 57 |
| 53 } // namespace cc | 58 } // namespace cc |
| 54 | 59 |
| 55 #endif // CC_TREES_PROXY_IMPL_H_ | 60 #endif // CC_TREES_PROXY_IMPL_H_ |
| OLD | NEW |