mac: Make RWHVMac::ClearCompositorFrame clear locks

Desktop / Chromium - Christopher Cameron [chromium.org] - 10 August 2017 18:23 EDT

Ensure that the BrowserCompositorMac not hold on to a compositor lock when requested to clear its compositor frame. This lock may be held indefinitely (if the renderer hangs) and so the frame will never be cleared.

Bug: 739621 Change-Id: I15d0e82bdf632f3379a48e959f198afb8a4ac218 Reviewed-on: https://chromium-review.googlesource.com/608239 Commit-Queue: ccameron chromium

5788690 mac: Make RWHVMac::ClearCompositorFrame clear locks
.../browser/renderer_host/browser_compositor_view_mac.h | 9 ++++++++-
.../renderer_host/browser_compositor_view_mac.mm | 17 +++++++++++++++++
content/browser/renderer_host/delegated_frame_host.cc | 5 +++++
.../browser/renderer_host/render_widget_host_view_mac.h | 3 +++
.../renderer_host/render_widget_host_view_mac.mm | 2 +-
.../render_widget_host_view_mac_unittest.mm | 10 ++++++++++
6 files changed, 44 insertions(+), 2 deletions(-)

Upstream: git.chromium.org


  • Share