Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: cc/trees/thread_proxy.h

Issue 178103004: Removing the use of base::Time inside the LayerTreeHost system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing to a common ToWebKitTime function. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_THREAD_PROXY_H_ 5 #ifndef CC_TREES_THREAD_PROXY_H_
6 #define CC_TREES_THREAD_PROXY_H_ 6 #define CC_TREES_THREAD_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Please call these 2 functions through 80 // Please call these 2 functions through
81 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). 81 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect().
82 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; 82 virtual void SetNeedsRedrawOnImplThread() OVERRIDE;
83 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) 83 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect)
84 OVERRIDE; 84 OVERRIDE;
85 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; 85 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE;
86 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; 86 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE;
87 virtual void SetNeedsCommitOnImplThread() OVERRIDE; 87 virtual void SetNeedsCommitOnImplThread() OVERRIDE;
88 virtual void PostAnimationEventsToMainThreadOnImplThread( 88 virtual void PostAnimationEventsToMainThreadOnImplThread(
89 scoped_ptr<AnimationEventsVector> queue, 89 scoped_ptr<AnimationEventsVector> queue,
90 base::Time wall_clock_time) OVERRIDE; 90 base::TimeTicks clock_time) OVERRIDE;
91 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, 91 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes,
92 int priority_cutoff) 92 int priority_cutoff)
93 OVERRIDE; 93 OVERRIDE;
94 virtual void SendManagedMemoryStats() OVERRIDE; 94 virtual void SendManagedMemoryStats() OVERRIDE;
95 virtual bool IsInsideDraw() OVERRIDE; 95 virtual bool IsInsideDraw() OVERRIDE;
96 virtual void RenewTreePriority() OVERRIDE; 96 virtual void RenewTreePriority() OVERRIDE;
97 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) 97 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay)
98 OVERRIDE; 98 OVERRIDE;
99 virtual void DidActivatePendingTree() OVERRIDE; 99 virtual void DidActivatePendingTree() OVERRIDE;
100 virtual void DidManageTiles() OVERRIDE; 100 virtual void DidManageTiles() OVERRIDE;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 int memory_allocation_priority_cutoff; 137 int memory_allocation_priority_cutoff;
138 bool evicted_ui_resources; 138 bool evicted_ui_resources;
139 }; 139 };
140 140
141 // Called on main thread. 141 // Called on main thread.
142 void BeginMainFrame( 142 void BeginMainFrame(
143 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); 143 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state);
144 void DidCommitAndDrawFrame(); 144 void DidCommitAndDrawFrame();
145 void DidCompleteSwapBuffers(); 145 void DidCompleteSwapBuffers();
146 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue, 146 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue,
147 base::Time wall_clock_time); 147 base::TimeTicks clock_time);
148 void DoCreateAndInitializeOutputSurface(); 148 void DoCreateAndInitializeOutputSurface();
149 // |capabilities| is set only when |success| is true. 149 // |capabilities| is set only when |success| is true.
150 void OnOutputSurfaceInitializeAttempted( 150 void OnOutputSurfaceInitializeAttempted(
151 bool success, 151 bool success,
152 const RendererCapabilities& capabilities); 152 const RendererCapabilities& capabilities);
153 void SendCommitRequestToImplThreadIfNeeded(); 153 void SendCommitRequestToImplThreadIfNeeded();
154 154
155 // Called on impl thread. 155 // Called on impl thread.
156 struct ReadbackRequest; 156 struct ReadbackRequest;
157 struct CommitPendingRequest; 157 struct CommitPendingRequest;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 311 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
312 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 312 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
313 313
314 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 314 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
315 }; 315 };
316 316
317 } // namespace cc 317 } // namespace cc
318 318
319 #endif // CC_TREES_THREAD_PROXY_H_ 319 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698