| Index: ui/ozone/platform/dri/gpu_platform_support_gbm.h
|
| diff --git a/ui/ozone/platform/dri/gpu_platform_support_gbm.h b/ui/ozone/platform/dri/gpu_platform_support_gbm.h
|
| index 28066d43b060ae93c5bb66e4b02dfd4965e0252a..b82c206cd44a4b0445d25f0bb7b9204672b4a800 100644
|
| --- a/ui/ozone/platform/dri/gpu_platform_support_gbm.h
|
| +++ b/ui/ozone/platform/dri/gpu_platform_support_gbm.h
|
| @@ -5,7 +5,11 @@
|
| #ifndef UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_
|
| #define UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_
|
|
|
| +#include <vector>
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| #include "ui/gfx/native_widget_types.h"
|
| +#include "ui/ozone/common/gpu/ozone_gpu_messages.h"
|
| #include "ui/ozone/public/gpu_platform_support.h"
|
|
|
| class SkBitmap;
|
| @@ -18,10 +22,21 @@ namespace ui {
|
|
|
| class DriSurfaceFactory;
|
|
|
| +#if defined(OS_CHROMEOS)
|
| +class NativeDisplayDelegateDri;
|
| +
|
| +struct DisplayMode_Params;
|
| +struct DisplaySnapshot_Params;
|
| +#endif
|
| +
|
| class GpuPlatformSupportGbm : public GpuPlatformSupport {
|
| public:
|
| GpuPlatformSupportGbm(DriSurfaceFactory* dri);
|
|
|
| +#if defined(OS_CHROMEOS)
|
| + void SetNativeDisplayDelegate(scoped_ptr<NativeDisplayDelegateDri> ndd);
|
| +#endif
|
| +
|
| // GpuPlatformSupport:
|
| virtual void OnChannelEstablished(IPC::Sender* sender) OVERRIDE;
|
|
|
| @@ -36,7 +51,20 @@ class GpuPlatformSupportGbm : public GpuPlatformSupport {
|
| const gfx::Point& location);
|
| void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location);
|
|
|
| +#if defined(OS_CHROMEOS)
|
| + void OnForceDPMSOn();
|
| + void OnRefreshNativeDisplays();
|
| + void OnConfigureNativeDisplay(int64_t id,
|
| + const DisplayMode_Params& mode,
|
| + const gfx::Point& origin);
|
| + void OnDisableNativeDisplay(int64_t id);
|
| +#endif
|
| +
|
| DriSurfaceFactory* dri_;
|
| +
|
| +#if defined(OS_CHROMEOS)
|
| + scoped_ptr<NativeDisplayDelegateDri> ndd_;
|
| +#endif
|
| };
|
|
|
| } // namespace ui
|
|
|