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

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

Issue 672283003: cc: ReadyToDraw notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean-ups 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 void UpdateRendererCapabilitiesOnImplThread() override; 175 void UpdateRendererCapabilitiesOnImplThread() override;
176 void DidLoseOutputSurfaceOnImplThread() override; 176 void DidLoseOutputSurfaceOnImplThread() override;
177 void CommitVSyncParameters(base::TimeTicks timebase, 177 void CommitVSyncParameters(base::TimeTicks timebase,
178 base::TimeDelta interval) override; 178 base::TimeDelta interval) override;
179 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 179 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
180 void SetMaxSwapsPendingOnImplThread(int max) override; 180 void SetMaxSwapsPendingOnImplThread(int max) override;
181 void DidSwapBuffersOnImplThread() override; 181 void DidSwapBuffersOnImplThread() override;
182 void DidSwapBuffersCompleteOnImplThread() override; 182 void DidSwapBuffersCompleteOnImplThread() override;
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 // Please call these 3 functions through 186 // Please call these 3 functions through
186 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 187 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
187 // SetNeedsAnimate(). 188 // SetNeedsAnimate().
188 void SetNeedsRedrawOnImplThread() override; 189 void SetNeedsRedrawOnImplThread() override;
189 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 190 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
190 void SetNeedsAnimateOnImplThread() override; 191 void SetNeedsAnimateOnImplThread() override;
191 void SetNeedsManageTilesOnImplThread() override; 192 void SetNeedsManageTilesOnImplThread() override;
192 void DidInitializeVisibleTileOnImplThread() override; 193 void DidInitializeVisibleTileOnImplThread() override;
193 void SetNeedsCommitOnImplThread() override; 194 void SetNeedsCommitOnImplThread() override;
194 void PostAnimationEventsToMainThreadOnImplThread( 195 void PostAnimationEventsToMainThreadOnImplThread(
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 291
291 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 292 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
292 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 293 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
293 294
294 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 295 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
295 }; 296 };
296 297
297 } // namespace cc 298 } // namespace cc
298 299
299 #endif // CC_TREES_THREAD_PROXY_H_ 300 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698