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

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

Issue 206793003: cc: Split animating and drawing into separate actions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual void DidActivatePendingTree() OVERRIDE; 99 virtual void DidActivatePendingTree() OVERRIDE;
100 virtual void DidManageTiles() OVERRIDE; 100 virtual void DidManageTiles() OVERRIDE;
101 101
102 // SchedulerClient implementation 102 // SchedulerClient implementation
103 virtual void SetNeedsBeginImplFrame(bool enable) OVERRIDE; 103 virtual void SetNeedsBeginImplFrame(bool enable) OVERRIDE;
104 virtual void ScheduledActionSendBeginMainFrame() OVERRIDE; 104 virtual void ScheduledActionSendBeginMainFrame() OVERRIDE;
105 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapIfPossible() 105 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapIfPossible()
106 OVERRIDE; 106 OVERRIDE;
107 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapForced() OVERRIDE; 107 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapForced() OVERRIDE;
108 virtual DrawSwapReadbackResult ScheduledActionDrawAndReadback() OVERRIDE; 108 virtual DrawSwapReadbackResult ScheduledActionDrawAndReadback() OVERRIDE;
109 virtual void ScheduledActionAnimate() OVERRIDE;
109 virtual void ScheduledActionCommit() OVERRIDE; 110 virtual void ScheduledActionCommit() OVERRIDE;
110 virtual void ScheduledActionUpdateVisibleTiles() OVERRIDE; 111 virtual void ScheduledActionUpdateVisibleTiles() OVERRIDE;
111 virtual void ScheduledActionActivatePendingTree() OVERRIDE; 112 virtual void ScheduledActionActivatePendingTree() OVERRIDE;
112 virtual void ScheduledActionBeginOutputSurfaceCreation() OVERRIDE; 113 virtual void ScheduledActionBeginOutputSurfaceCreation() OVERRIDE;
113 virtual void ScheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; 114 virtual void ScheduledActionAcquireLayerTexturesForMainThread() OVERRIDE;
114 virtual void ScheduledActionManageTiles() OVERRIDE; 115 virtual void ScheduledActionManageTiles() OVERRIDE;
115 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) OVERRIDE; 116 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) OVERRIDE;
116 virtual base::TimeDelta DrawDurationEstimate() OVERRIDE; 117 virtual base::TimeDelta DrawDurationEstimate() OVERRIDE;
117 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() OVERRIDE; 118 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() OVERRIDE;
118 virtual base::TimeDelta CommitToActivateDurationEstimate() OVERRIDE; 119 virtual base::TimeDelta CommitToActivateDurationEstimate() OVERRIDE;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // Set when the next draw should post DidCommitAndDrawFrame to the main 288 // Set when the next draw should post DidCommitAndDrawFrame to the main
288 // thread. 289 // thread.
289 bool next_frame_is_newly_committed_frame; 290 bool next_frame_is_newly_committed_frame;
290 291
291 bool inside_draw; 292 bool inside_draw;
292 293
293 bool input_throttled_until_commit; 294 bool input_throttled_until_commit;
294 295
295 // Set when we freeze animations to avoid checkerboarding. 296 // Set when we freeze animations to avoid checkerboarding.
296 bool animations_frozen_until_next_draw; 297 bool animations_frozen_until_next_draw;
297 base::TimeTicks animation_freeze_time; 298 base::TimeTicks animation_time;
298 299
299 base::TimeTicks smoothness_takes_priority_expiration_time; 300 base::TimeTicks smoothness_takes_priority_expiration_time;
300 bool renew_tree_priority_pending; 301 bool renew_tree_priority_pending;
301 302
302 ProxyTimingHistory timing_history; 303 ProxyTimingHistory timing_history;
303 304
304 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl; 305 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl;
305 base::WeakPtrFactory<ThreadProxy> weak_factory; 306 base::WeakPtrFactory<ThreadProxy> weak_factory;
306 }; 307 };
307 // Use accessors instead of this variable directly. 308 // Use accessors instead of this variable directly.
308 CompositorThreadOnly compositor_thread_vars_unsafe_; 309 CompositorThreadOnly compositor_thread_vars_unsafe_;
309 CompositorThreadOnly& impl(); 310 CompositorThreadOnly& impl();
310 const CompositorThreadOnly& impl() const; 311 const CompositorThreadOnly& impl() const;
311 312
312 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 313 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
313 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 314 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
314 315
315 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 316 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
316 }; 317 };
317 318
318 } // namespace cc 319 } // namespace cc
319 320
320 #endif // CC_TREES_THREAD_PROXY_H_ 321 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698