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

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

Issue 671653005: SetNeedsRedraw directly when updating a visible tile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pinchblurmerge-test: comments Created 6 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
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 void OnCanDrawStateChanged(bool can_draw) override; 183 void OnCanDrawStateChanged(bool can_draw) override;
184 void NotifyReadyToActivate() override; 184 void NotifyReadyToActivate() override;
185 void NotifyReadyToDraw() override; 185 void NotifyReadyToDraw() override;
186 // Please call these 3 functions through 186 // Please call these 3 functions through
187 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 187 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
188 // SetNeedsAnimate(). 188 // SetNeedsAnimate().
189 void SetNeedsRedrawOnImplThread() override; 189 void SetNeedsRedrawOnImplThread() override;
190 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 190 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
191 void SetNeedsAnimateOnImplThread() override; 191 void SetNeedsAnimateOnImplThread() override;
192 void SetNeedsManageTilesOnImplThread() override; 192 void SetNeedsManageTilesOnImplThread() override;
193 void DidInitializeVisibleTileOnImplThread() override;
194 void SetNeedsCommitOnImplThread() override; 193 void SetNeedsCommitOnImplThread() override;
195 void PostAnimationEventsToMainThreadOnImplThread( 194 void PostAnimationEventsToMainThreadOnImplThread(
196 scoped_ptr<AnimationEventsVector> queue) override; 195 scoped_ptr<AnimationEventsVector> queue) override;
197 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, 196 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes,
198 int priority_cutoff) override; 197 int priority_cutoff) override;
199 bool IsInsideDraw() override; 198 bool IsInsideDraw() override;
200 void RenewTreePriority() override; 199 void RenewTreePriority() override;
201 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, 200 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade,
202 base::TimeDelta delay) override; 201 base::TimeDelta delay) override;
203 void DidActivateSyncTree() override; 202 void DidActivateSyncTree() override;
204 void DidManageTiles() override; 203 void DidManageTiles() override;
205 204
206 // SchedulerClient implementation 205 // SchedulerClient implementation
207 BeginFrameSource* ExternalBeginFrameSource() override; 206 BeginFrameSource* ExternalBeginFrameSource() override;
208 void WillBeginImplFrame(const BeginFrameArgs& args) override; 207 void WillBeginImplFrame(const BeginFrameArgs& args) override;
209 void ScheduledActionSendBeginMainFrame() override; 208 void ScheduledActionSendBeginMainFrame() override;
210 DrawResult ScheduledActionDrawAndSwapIfPossible() override; 209 DrawResult ScheduledActionDrawAndSwapIfPossible() override;
211 DrawResult ScheduledActionDrawAndSwapForced() override; 210 DrawResult ScheduledActionDrawAndSwapForced() override;
212 void ScheduledActionAnimate() override; 211 void ScheduledActionAnimate() override;
213 void ScheduledActionCommit() override; 212 void ScheduledActionCommit() override;
214 void ScheduledActionUpdateVisibleTiles() override;
215 void ScheduledActionActivateSyncTree() override; 213 void ScheduledActionActivateSyncTree() override;
216 void ScheduledActionBeginOutputSurfaceCreation() override; 214 void ScheduledActionBeginOutputSurfaceCreation() override;
217 void ScheduledActionManageTiles() override; 215 void ScheduledActionManageTiles() override;
218 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; 216 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override;
219 base::TimeDelta DrawDurationEstimate() override; 217 base::TimeDelta DrawDurationEstimate() override;
220 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; 218 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override;
221 base::TimeDelta CommitToActivateDurationEstimate() override; 219 base::TimeDelta CommitToActivateDurationEstimate() override;
222 void DidBeginImplFrameDeadline() override; 220 void DidBeginImplFrameDeadline() override;
223 221
224 // ResourceUpdateControllerClient implementation 222 // ResourceUpdateControllerClient implementation
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 289
292 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 290 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
293 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 291 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
294 292
295 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 293 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
296 }; 294 };
297 295
298 } // namespace cc 296 } // namespace cc
299 297
300 #endif // CC_TREES_THREAD_PROXY_H_ 298 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698