Update Take/Release display control to async API
commit52854972c945d9d48ad4e391da08dc733202ed00
authordnicoara <dnicoara@chromium.org>
Wed, 3 Jun 2015 13:09:40 +0000 (3 06:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Jun 2015 13:10:40 +0000 (3 13:10 +0000)
treee0b203a359d9ffbaa3108467c66d35adfedd62f8
parent255913a791a398eed5c352fa3ac220be178cc772
Update Take/Release display control to async API

When switching from Chrome to Frecon, Frecon waits for the dbus reply to
take ownership of the DRM device. Since NativeDisplayDelegate calls may
be async, the current code responds back to Frecon at the same time as
the IPC to release master happens. As a consequence it is possible that
Frecon tries to acquire master before Chrome releases it.

This change updates the NativeDisplayDelegate API to allow
asynchronously taking and releasing of the display control (DRM master)
and updates the console service provider to use the async API.

BUG=none

Review URL: https://codereview.chromium.org/1160973005

Cr-Commit-Position: refs/heads/master@{#332604}
16 files changed:
chrome/browser/chromeos/dbus/chrome_console_service_provider_delegate.cc
chrome/browser/chromeos/dbus/chrome_console_service_provider_delegate.h
chromeos/dbus/services/console_service_provider.cc
chromeos/dbus/services/console_service_provider.h
ui/display/chromeos/display_configurator.cc
ui/display/chromeos/display_configurator.h
ui/display/chromeos/display_configurator_unittest.cc
ui/display/chromeos/test/test_native_display_delegate.cc
ui/display/chromeos/test/test_native_display_delegate.h
ui/display/chromeos/x11/native_display_delegate_x11.cc
ui/display/chromeos/x11/native_display_delegate_x11.h
ui/display/types/native_display_delegate.h
ui/ozone/common/native_display_delegate_ozone.cc
ui/ozone/common/native_display_delegate_ozone.h
ui/ozone/platform/drm/host/drm_native_display_delegate.cc
ui/ozone/platform/drm/host/drm_native_display_delegate.h