| Index: ui/ozone/platform/dri/gpu_platform_support_host_gbm.h
|
| diff --git a/ui/ozone/platform/dri/gpu_platform_support_host_gbm.h b/ui/ozone/platform/dri/gpu_platform_support_host_gbm.h
|
| index 6463413c32111b32bb7d78e61133fe2030e252d6..03c276d675ab8580faf7487186811cfe0437647c 100644
|
| --- a/ui/ozone/platform/dri/gpu_platform_support_host_gbm.h
|
| +++ b/ui/ozone/platform/dri/gpu_platform_support_host_gbm.h
|
| @@ -5,7 +5,9 @@
|
| #ifndef UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_HOST_GBM_H_
|
| #define UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_HOST_GBM_H_
|
|
|
| +#include "base/memory/scoped_vector.h"
|
| #include "ui/gfx/native_widget_types.h"
|
| +#include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
|
| #include "ui/ozone/platform/dri/hardware_cursor_delegate.h"
|
| #include "ui/ozone/public/gpu_platform_support_host.h"
|
|
|
| @@ -17,11 +19,21 @@ class Point;
|
|
|
| namespace ui {
|
|
|
| +#if defined(OS_CHROMEOS)
|
| +class DisplayMode;
|
| +class DisplaySnapshot;
|
| +class NativeDisplayDelegateProxy;
|
| +#endif
|
| +
|
| class GpuPlatformSupportHostGbm : public GpuPlatformSupportHost,
|
| public HardwareCursorDelegate {
|
| public:
|
| GpuPlatformSupportHostGbm();
|
|
|
| +#if defined(OS_CHROMEOS)
|
| + void RegisterDisplayDelegate(NativeDisplayDelegateProxy* ndd);
|
| +#endif
|
| +
|
| // GpuPlatformSupportHost:
|
| virtual void OnChannelEstablished(int host_id, IPC::Sender* sender) OVERRIDE;
|
| virtual void OnChannelDestroyed(int host_id) OVERRIDE;
|
| @@ -36,7 +48,23 @@ class GpuPlatformSupportHostGbm : public GpuPlatformSupportHost,
|
| virtual void MoveHardwareCursor(gfx::AcceleratedWidget widget,
|
| const gfx::Point& location) OVERRIDE;
|
|
|
| +#if defined(OS_CHROMEOS)
|
| + // Display Configuration helpers:
|
| + void ForceDPMSOn();
|
| + void RefreshNativeDisplays();
|
| + void ConfigureNativeDisplay(int64_t id,
|
| + const DisplayMode* mode,
|
| + const gfx::Point& origin);
|
| +#endif
|
| +
|
| private:
|
| +#if defined(OS_CHROMEOS)
|
| + void OnUpdateNativeDisplays(
|
| + const std::vector<DisplaySnapshot_Params>& displays);
|
| +
|
| + NativeDisplayDelegateProxy* ndd_;
|
| +#endif
|
| +
|
| int host_id_;
|
| IPC::Sender* sender_;
|
| };
|
|
|