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

Side by Side Diff: cc/thread_proxy.h

Issue 12408028: cc: Delay start of scrollbar animation setNeedsRedraw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to 188682 Created 7 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
« no previous file with comments | « cc/test/scheduler_test_common.cc ('k') | cc/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_THREAD_PROXY_H_ 5 #ifndef CC_THREAD_PROXY_H_
6 #define CC_THREAD_PROXY_H_ 6 #define CC_THREAD_PROXY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual void PostAnimationEventsToMainThreadOnImplThread( 79 virtual void PostAnimationEventsToMainThreadOnImplThread(
80 scoped_ptr<AnimationEventsVector> queue, 80 scoped_ptr<AnimationEventsVector> queue,
81 base::Time wall_clock_time) OVERRIDE; 81 base::Time wall_clock_time) OVERRIDE;
82 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, 82 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes,
83 int priority_cutoff) 83 int priority_cutoff)
84 OVERRIDE; 84 OVERRIDE;
85 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; 85 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE;
86 virtual void SendManagedMemoryStats() OVERRIDE; 86 virtual void SendManagedMemoryStats() OVERRIDE;
87 virtual bool IsInsideDraw() OVERRIDE; 87 virtual bool IsInsideDraw() OVERRIDE;
88 virtual void RenewTreePriority() OVERRIDE; 88 virtual void RenewTreePriority() OVERRIDE;
89 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay)
90 OVERRIDE;
89 91
90 // SchedulerClient implementation 92 // SchedulerClient implementation
91 virtual void ScheduledActionBeginFrame() OVERRIDE; 93 virtual void ScheduledActionBeginFrame() OVERRIDE;
92 virtual ScheduledActionDrawAndSwapResult 94 virtual ScheduledActionDrawAndSwapResult
93 ScheduledActionDrawAndSwapIfPossible() OVERRIDE; 95 ScheduledActionDrawAndSwapIfPossible() OVERRIDE;
94 virtual ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapForced() 96 virtual ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapForced()
95 OVERRIDE; 97 OVERRIDE;
96 virtual void ScheduledActionCommit() OVERRIDE; 98 virtual void ScheduledActionCommit() OVERRIDE;
97 virtual void ScheduledActionCheckForCompletedTileUploads() OVERRIDE; 99 virtual void ScheduledActionCheckForCompletedTileUploads() OVERRIDE;
98 virtual void ScheduledActionActivatePendingTreeIfNeeded() OVERRIDE; 100 virtual void ScheduledActionActivatePendingTreeIfNeeded() OVERRIDE;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); 181 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion);
180 void SetNeedsForcedCommitOnImplThread(); 182 void SetNeedsForcedCommitOnImplThread();
181 void CheckOutputSurfaceStatusOnImplThread(); 183 void CheckOutputSurfaceStatusOnImplThread();
182 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); 184 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request);
183 void CapturePictureOnImplThread(CompletionEvent* completion, 185 void CapturePictureOnImplThread(CompletionEvent* completion,
184 skia::RefPtr<SkPicture>* picture); 186 skia::RefPtr<SkPicture>* picture);
185 void AsValueOnImplThread(CompletionEvent* completion, 187 void AsValueOnImplThread(CompletionEvent* completion,
186 base::DictionaryValue* state) const; 188 base::DictionaryValue* state) const;
187 void RenewTreePriorityOnImplThread(); 189 void RenewTreePriorityOnImplThread();
188 void DidSwapUseIncompleteTileOnImplThread(); 190 void DidSwapUseIncompleteTileOnImplThread();
191 void StartScrollbarAnimationOnImplThread();
189 192
190 // Accessed on main thread only. 193 // Accessed on main thread only.
191 194
192 // Set only when SetNeedsAnimate is called. 195 // Set only when SetNeedsAnimate is called.
193 bool animate_requested_; 196 bool animate_requested_;
194 // Set only when SetNeedsCommit is called. 197 // Set only when SetNeedsCommit is called.
195 bool commit_requested_; 198 bool commit_requested_;
196 // Set by SetNeedsCommit and SetNeedsAnimate. 199 // Set by SetNeedsCommit and SetNeedsAnimate.
197 bool commit_request_sent_to_impl_thread_; 200 bool commit_request_sent_to_impl_thread_;
198 // Set by BeginFrame 201 // Set by BeginFrame
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 bool defer_commits_; 260 bool defer_commits_;
258 scoped_ptr<BeginFrameAndCommitState> pending_deferred_commit_; 261 scoped_ptr<BeginFrameAndCommitState> pending_deferred_commit_;
259 262
260 base::TimeTicks smoothness_takes_priority_expiration_time_; 263 base::TimeTicks smoothness_takes_priority_expiration_time_;
261 bool renew_tree_priority_on_impl_thread_pending_; 264 bool renew_tree_priority_on_impl_thread_pending_;
262 }; 265 };
263 266
264 } // namespace cc 267 } // namespace cc
265 268
266 #endif // CC_THREAD_PROXY_H_ 269 #endif // CC_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/test/scheduler_test_common.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698