| Index: cc/scheduler/scheduler_state_machine.h
|
| diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
|
| index 887e4c743a34450bc1ec5013484c29cc932f4f9d..0a1e4225bdf1bc23aabb22fad58827af6e44e581 100644
|
| --- a/cc/scheduler/scheduler_state_machine.h
|
| +++ b/cc/scheduler/scheduler_state_machine.h
|
| @@ -238,6 +238,10 @@ class CC_EXPORT SchedulerStateMachine {
|
|
|
| bool CouldSendBeginMainFrame() const;
|
|
|
| + void SetOnBatteryPower(bool on_battery_power) {
|
| + on_battery_power_ = on_battery_power;
|
| + }
|
| +
|
| // TODO(zmo): This is temporary for debugging crbug.com/393331.
|
| // We should remove it afterwards.
|
| std::string GetStatesForDebugging() const;
|
| @@ -314,6 +318,7 @@ class CC_EXPORT SchedulerStateMachine {
|
| bool skip_next_begin_main_frame_to_reduce_latency_;
|
| bool skip_begin_main_frame_to_reduce_latency_;
|
| bool continuous_painting_;
|
| + bool on_battery_power_;
|
|
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
|
|
|