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

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

Issue 13947038: Retry tree activation if raster tasks finish during first half of vsync interval (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/thread_proxy.h » ('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.h" 10 #include "base/time.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698