diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-03-08 10:28:10 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-03-20 13:40:30 +0000 |
commit | e733310db58160074f574c429d48f8308c0afe17 (patch) | |
tree | f8aef4b7e62a69928dbcf880620eece20f98c6df /chromium/content/browser/media/capture/cursor_renderer_aura.cc | |
parent | 2f583e4aec1ae3a86fa047829c96b310dc12ecdf (diff) | |
download | qtwebengine-chromium-e733310db58160074f574c429d48f8308c0afe17.tar.gz |
BASELINE: Update Chromium to 56.0.2924.122
Change-Id: I4e04de8f47e47e501c46ed934c76a431c6337ced
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/content/browser/media/capture/cursor_renderer_aura.cc')
-rw-r--r-- | chromium/content/browser/media/capture/cursor_renderer_aura.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/content/browser/media/capture/cursor_renderer_aura.cc b/chromium/content/browser/media/capture/cursor_renderer_aura.cc index b4a2ba5a4a1..f78e56c3451 100644 --- a/chromium/content/browser/media/capture/cursor_renderer_aura.cc +++ b/chromium/content/browser/media/capture/cursor_renderer_aura.cc @@ -109,6 +109,11 @@ bool CursorRendererAura::SnapshotCursorState(const gfx::Rect& region_in_frame) { return false; } aura::Window* active_window = activation_client->GetActiveWindow(); + if (!active_window) { + DVLOG(2) << "Skipping update as there is no active window"; + Clear(); + return false; + } if (!active_window->Contains(window_)) { // Return early if the target window is not active. DVLOG(2) << "Skipping update on an inactive window"; |