| Index: cc/scheduler/scheduler_state_machine.cc
|
| diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc
|
| index 7b2bb438e7c861478d7227475182a4e59df0d126..647af71e27b91ebf66a6487ab78e7fe1c6470329 100644
|
| --- a/cc/scheduler/scheduler_state_machine.cc
|
| +++ b/cc/scheduler/scheduler_state_machine.cc
|
| @@ -801,10 +801,13 @@ bool SchedulerStateMachine::ShouldPollForAnticipatedDrawTriggers() const {
|
| return false;
|
| }
|
|
|
| +// Note: If SupportsProactiveBeginFrame is false, the scheduler should poll
|
| +// for changes in it's draw state so it can request a BeginFrame when it's
|
| +// actually ready.
|
| bool SchedulerStateMachine::SupportsProactiveBeginFrame() const {
|
| - // Both the synchronous compositor and disabled vsync settings
|
| - // make it undesirable to proactively request BeginImplFrames.
|
| - // If this is true, the scheduler should poll.
|
| + // It is undesirable to proactively request BeginFrames if we are
|
| + // using a synchronous compositor because we *must* draw for every
|
| + // BeginFrame, which could cause duplicate draws.
|
| return !settings_.using_synchronous_renderer_compositor;
|
| }
|
|
|
|
|