1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_
6 #define UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/ozone/ozone_export.h"
10 #include "ui/ozone/public/gpu_platform_support.h"
20 class DriSurfaceFactory
;
22 class OZONE_EXPORT GpuPlatformSupportGbm
: public GpuPlatformSupport
{
24 GpuPlatformSupportGbm(DriSurfaceFactory
* dri
);
26 // GpuPlatformSupport:
27 virtual void OnChannelEstablished(IPC::Sender
* sender
) OVERRIDE
;
30 virtual bool OnMessageReceived(const IPC::Message
& message
) OVERRIDE
;
35 void OnCursorSet(gfx::AcceleratedWidget widget
,
36 const SkBitmap
& bitmap
,
37 const gfx::Point
& location
);
38 void OnCursorMove(gfx::AcceleratedWidget widget
, const gfx::Point
& location
);
40 DriSurfaceFactory
* dri_
;
45 #endif // UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_