| 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_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_ |
| 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ | 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 base::Time wall_clock_time) OVERRIDE; | 64 base::Time wall_clock_time) OVERRIDE; |
| 65 virtual bool ReduceContentsTextureMemoryOnImplThread( | 65 virtual bool ReduceContentsTextureMemoryOnImplThread( |
| 66 size_t limit_bytes, | 66 size_t limit_bytes, |
| 67 int priority_cutoff) OVERRIDE; | 67 int priority_cutoff) OVERRIDE; |
| 68 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; | 68 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; |
| 69 virtual void SendManagedMemoryStats() OVERRIDE; | 69 virtual void SendManagedMemoryStats() OVERRIDE; |
| 70 virtual bool IsInsideDraw() OVERRIDE; | 70 virtual bool IsInsideDraw() OVERRIDE; |
| 71 virtual void RenewTreePriority() OVERRIDE {} | 71 virtual void RenewTreePriority() OVERRIDE {} |
| 72 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) | 72 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) |
| 73 OVERRIDE {} | 73 OVERRIDE {} |
| 74 virtual void DidFinishTileRasterTasks() OVERRIDE {} |
| 74 | 75 |
| 75 // Called by the legacy path where RenderWidget does the scheduling. | 76 // Called by the legacy path where RenderWidget does the scheduling. |
| 76 void CompositeImmediately(base::TimeTicks frame_begin_time); | 77 void CompositeImmediately(base::TimeTicks frame_begin_time); |
| 77 | 78 |
| 78 private: | 79 private: |
| 79 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); | 80 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); |
| 80 | 81 |
| 81 bool CommitAndComposite(base::TimeTicks frame_begin_time, | 82 bool CommitAndComposite(base::TimeTicks frame_begin_time, |
| 82 gfx::Rect device_viewport_damage_rect, | 83 gfx::Rect device_viewport_damage_rect, |
| 83 LayerTreeHostImpl::FrameData* frame); | 84 LayerTreeHostImpl::FrameData* frame); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 private: | 171 private: |
| 171 DebugScopedSetImplThread impl_thread_; | 172 DebugScopedSetImplThread impl_thread_; |
| 172 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 173 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 173 | 174 |
| 174 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 175 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 } // namespace cc | 178 } // namespace cc |
| 178 | 179 |
| 179 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 180 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |