• James Wallace-Lee's avatar
    Don't set did_draw_in_last_frame_ in AbortDraw · 8ed5395d
    James Wallace-Lee authored
    In webview, frames with no damage sometimes call AbortDraw to prevent
    draws. These aborts should not set did_draw_in_last_frame_ or the
    scheduler will request new BeginFrames when it doesn't need to.
    
    This CL stops setting did_draw_in_last_frame_ in AbortDraw while still
    setting it in WillDraw.
    
    Bug: 687695
    Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel
    Change-Id: I84c39a5e06d578ea92558d81ce2fad5dc423cf75
    Reviewed-on: https://chromium-review.googlesource.com/933292
    Commit-Queue: James Wallace-Lee <jamwalla@chromium.org>
    Reviewed-by: default avatardanakj <danakj@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#542229}
    8ed5395d
scheduler_state_machine.cc 50.2 KB