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

Side by Side Diff: cc/scheduler/frame_rate_controller.h

Issue 67023003: cc: Don't double-tick unthrottled FrameRateController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pull out change to disable deadline scheduling. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/scheduler/frame_rate_controller.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_SCHEDULER_FRAME_RATE_CONTROLLER_H_ 5 #ifndef CC_SCHEDULER_FRAME_RATE_CONTROLLER_H_
6 #define CC_SCHEDULER_FRAME_RATE_CONTROLLER_H_ 6 #define CC_SCHEDULER_FRAME_RATE_CONTROLLER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 int num_frames_pending_; 81 int num_frames_pending_;
82 int max_swaps_pending_; 82 int max_swaps_pending_;
83 base::TimeDelta interval_; 83 base::TimeDelta interval_;
84 base::TimeDelta deadline_adjustment_; 84 base::TimeDelta deadline_adjustment_;
85 scoped_refptr<TimeSource> time_source_; 85 scoped_refptr<TimeSource> time_source_;
86 scoped_ptr<FrameRateControllerTimeSourceAdapter> time_source_client_adapter_; 86 scoped_ptr<FrameRateControllerTimeSourceAdapter> time_source_client_adapter_;
87 bool active_; 87 bool active_;
88 88
89 // Members for unthrottled frame-rate. 89 // Members for unthrottled frame-rate.
90 bool is_time_source_throttling_; 90 bool is_time_source_throttling_;
91 bool manual_tick_pending_;
91 base::SingleThreadTaskRunner* task_runner_; 92 base::SingleThreadTaskRunner* task_runner_;
92 base::WeakPtrFactory<FrameRateController> weak_factory_; 93 base::WeakPtrFactory<FrameRateController> weak_factory_;
93 94
94 private: 95 private:
95 DISALLOW_COPY_AND_ASSIGN(FrameRateController); 96 DISALLOW_COPY_AND_ASSIGN(FrameRateController);
96 }; 97 };
97 98
98 } // namespace cc 99 } // namespace cc
99 100
100 #endif // CC_SCHEDULER_FRAME_RATE_CONTROLLER_H_ 101 #endif // CC_SCHEDULER_FRAME_RATE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/frame_rate_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698