Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Side by Side Diff: ui/ozone/platform/dri/hardware_cursor_delegate.h

Issue 543643003: ozone: Plumb animated cursors from BitmapCursorFactoryOzone to DriSurfaceFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix dri_surface_factory_unittest Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/platform/dri/gpu_platform_support_host_gbm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_OZONE_PLATFORM_DRI_HARDWARE_CURSOR_DELEGATE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_HARDWARE_CURSOR_DELEGATE_H_
6 #define UI_OZONE_PLATFORM_DRI_HARDWARE_CURSOR_DELEGATE_H_ 6 #define UI_OZONE_PLATFORM_DRI_HARDWARE_CURSOR_DELEGATE_H_
7 7
8 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 9
10 class SkBitmap; 10 class SkBitmap;
11 11
12 namespace gfx { 12 namespace gfx {
13 class Point; 13 class Point;
14 } 14 }
15 15
16 namespace ui { 16 namespace ui {
17 17
18 class HardwareCursorDelegate { 18 class HardwareCursorDelegate {
19 public: 19 public:
20 // Update the HW cursor bitmap & move to specified location. If 20 // Update the HW cursor bitmap & move to specified location. If
21 // the bitmap is empty, the cursor is hidden. 21 // the bitmap is empty, the cursor is hidden.
22 virtual void SetHardwareCursor(gfx::AcceleratedWidget widget, 22 virtual void SetHardwareCursor(gfx::AcceleratedWidget widget,
23 const SkBitmap& bitmap, 23 const std::vector<SkBitmap>& bitmaps,
24 const gfx::Point& location) = 0; 24 const gfx::Point& location,
25 int frame_delay_ms) = 0;
25 26
26 // Move the HW cursor to the specified location. 27 // Move the HW cursor to the specified location.
27 virtual void MoveHardwareCursor(gfx::AcceleratedWidget widget, 28 virtual void MoveHardwareCursor(gfx::AcceleratedWidget widget,
28 const gfx::Point& location) = 0; 29 const gfx::Point& location) = 0;
29 30
30 protected: 31 protected:
31 virtual ~HardwareCursorDelegate() {} 32 virtual ~HardwareCursorDelegate() {}
32 }; 33 };
33 34
34 } // namespace ui 35 } // namespace ui
35 36
36 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_CURSOR_DELEGATE_H_ 37 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_CURSOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gpu_platform_support_host_gbm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698