ozone: gbm: Update hardware cursor in GPU process
[chromium-blink-merge.git] / ui / ozone / platform / dri / gpu_platform_support_gbm.h
blob5859716e8ddbc16777b2350aed04afcc2d42203e
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"
12 class SkBitmap;
14 namespace gfx {
15 class Point;
18 namespace ui {
20 class DriSurfaceFactory;
22 class OZONE_EXPORT GpuPlatformSupportGbm : public GpuPlatformSupport {
23 public:
24 GpuPlatformSupportGbm(DriSurfaceFactory* dri);
26 // GpuPlatformSupport:
27 virtual void OnChannelEstablished(IPC::Sender* sender) OVERRIDE;
29 // IPC::Listener:
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
32 private:
33 IPC::Sender* sender_;
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_;
43 } // namespace ui
45 #endif // UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_