• Bo Liu's avatar
    cc: Invalidate for needs_prepare_tiles · 43a7801f
    Bo Liu authored
    Problem is when CanDraw is false but needs_prepare_tiles is true
    Scheduler will keep requesting begin frames but do nothing in a
    begin frame since invalidate is blocked on CanDraw.
    
    We already have an efficient shortcut that does not involve actually
    producing a frame if invalidate is only requested for
    needs_prepare_tiles. So the simple fix is simply allow invalidates for
    this case.
    
    Bug: 900557
    Change-Id: Ib3c3e213e2e2461d7aa1b8dd8d2e91ab64042feb
    Reviewed-on: https://chromium-review.googlesource.com/c/1334550
    Commit-Queue: Bo <boliu@chromium.org>
    Reviewed-by: default avatarSunny Sachanandani <sunnyps@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#607876}
    43a7801f
scheduler_unittest.cc 158 KB