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

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

Issue 26880010: gfx: Add FrameTime and DisplayTime classes (Closed) Base URL: http://git.chromium.org/chromium/src.git@checkHighResNow4
Patch Set: WIP Created 7 years, 1 month 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
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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/time.h" 10 #include "base/time/time.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 int priority_cutoff) OVERRIDE; 68 int priority_cutoff) OVERRIDE;
69 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; 69 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE;
70 virtual void SendManagedMemoryStats() OVERRIDE; 70 virtual void SendManagedMemoryStats() OVERRIDE;
71 virtual bool IsInsideDraw() OVERRIDE; 71 virtual bool IsInsideDraw() OVERRIDE;
72 virtual void RenewTreePriority() OVERRIDE {} 72 virtual void RenewTreePriority() OVERRIDE {}
73 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) 73 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay)
74 OVERRIDE {} 74 OVERRIDE {}
75 virtual void DidActivatePendingTree() OVERRIDE {} 75 virtual void DidActivatePendingTree() OVERRIDE {}
76 76
77 // Called by the legacy path where RenderWidget does the scheduling. 77 // Called by the legacy path where RenderWidget does the scheduling.
78 void CompositeImmediately(base::TimeTicks frame_begin_time); 78 void CompositeImmediately(gfx::FrameTime frame_begin_time);
79 79
80 private: 80 private:
81 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); 81 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host);
82 82
83 void OnOutputSurfaceInitializeAttempted(bool success); 83 void OnOutputSurfaceInitializeAttempted(bool success);
84 bool CommitAndComposite(base::TimeTicks frame_begin_time, 84 bool CommitAndComposite(gfx::FrameTime frame_begin_time,
85 gfx::Rect device_viewport_damage_rect, 85 gfx::Rect device_viewport_damage_rect,
86 bool for_readback, 86 bool for_readback,
87 LayerTreeHostImpl::FrameData* frame); 87 LayerTreeHostImpl::FrameData* frame);
88 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); 88 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue);
89 bool DoComposite( 89 bool DoComposite(scoped_refptr<cc::ContextProvider> offscreen_context_provider ,
90 scoped_refptr<cc::ContextProvider> offscreen_context_provider, 90 gfx::FrameTime frame_begin_time,
91 base::TimeTicks frame_begin_time,
92 gfx::Rect device_viewport_damage_rect, 91 gfx::Rect device_viewport_damage_rect,
93 bool for_readback, 92 bool for_readback,
94 LayerTreeHostImpl::FrameData* frame); 93 LayerTreeHostImpl::FrameData* frame);
95 void DidSwapFrame(); 94 void DidSwapFrame();
96 95
97 bool ShouldComposite() const; 96 bool ShouldComposite() const;
98 void UpdateBackgroundAnimateTicking(); 97 void UpdateBackgroundAnimateTicking();
99 98
100 // Accessed on main thread only. 99 // Accessed on main thread only.
101 LayerTreeHost* layer_tree_host_; 100 LayerTreeHost* layer_tree_host_;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 private: 173 private:
175 DebugScopedSetImplThread impl_thread_; 174 DebugScopedSetImplThread impl_thread_;
176 DebugScopedSetMainThreadBlocked main_thread_blocked_; 175 DebugScopedSetMainThreadBlocked main_thread_blocked_;
177 176
178 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 177 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
179 }; 178 };
180 179
181 } // namespace cc 180 } // namespace cc
182 181
183 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 182 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698