diff options
Diffstat (limited to 'ui/base/x/x11_util.h')
-rw-r--r-- | ui/base/x/x11_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/base/x/x11_util.h b/ui/base/x/x11_util.h index 771e8ef..bf89c3b 100644 --- a/ui/base/x/x11_util.h +++ b/ui/base/x/x11_util.h @@ -18,6 +18,7 @@ #include "base/basictypes.h" #include "ui/base/events.h" #include "ui/base/ui_export.h" +#include "ui/gfx/point.h" typedef unsigned long Atom; typedef unsigned long XID; @@ -35,6 +36,7 @@ typedef struct _GtkWindow GtkWindow; namespace gfx { class Rect; } +class SkBitmap; namespace ui { @@ -89,6 +91,11 @@ UI_EXPORT void RefCustomXCursor(::Cursor cursor); // Decreases the refcount of the custom cursor, and destroys it if it reaches 0. UI_EXPORT void UnrefCustomXCursor(::Cursor cursor); + +// Creates a XcursorImage and copies the SkBitmap |bitmap| on it. |bitmap| +// should be non-null. Caller owns the returned object. +UI_EXPORT XcursorImage* SkBitmapToXcursorImage(const SkBitmap* bitmap, + const gfx::Point& hotspot); #endif // These functions do not cache their results -------------------------- |