OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ | 5 #ifndef UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ |
6 #define UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ | 6 #define UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "third_party/skia/include/core/SkBitmap.h" |
9 #include "ui/gfx/ozone/surface_factory_ozone.h" | 10 #include "ui/gfx/ozone/surface_factory_ozone.h" |
10 | 11 |
11 namespace gfx { | 12 namespace gfx { |
12 | 13 |
13 class DriSurface; | 14 class DriSurface; |
14 class DriWrapper; | 15 class DriWrapper; |
15 class HardwareDisplayController; | 16 class HardwareDisplayController; |
16 | 17 |
17 // SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers. | 18 // SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers. |
18 // This implementation is used in conjunction with the software rendering | 19 // This implementation is used in conjunction with the software rendering |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual bool InitializeControllerForPrimaryDisplay( | 61 virtual bool InitializeControllerForPrimaryDisplay( |
61 DriWrapper* drm, | 62 DriWrapper* drm, |
62 HardwareDisplayController* controller); | 63 HardwareDisplayController* controller); |
63 | 64 |
64 // Blocks until a DRM event is read. | 65 // Blocks until a DRM event is read. |
65 // TODO(dnicoara) Remove once we can safely move DRM event processing in the | 66 // TODO(dnicoara) Remove once we can safely move DRM event processing in the |
66 // message loop while correctly signaling when we're done displaying the | 67 // message loop while correctly signaling when we're done displaying the |
67 // pending frame. | 68 // pending frame. |
68 virtual void WaitForPageFlipEvent(int fd); | 69 virtual void WaitForPageFlipEvent(int fd); |
69 | 70 |
| 71 // Draw the last set cursor & update the cursor plane. |
| 72 void ResetCursor(); |
| 73 |
70 scoped_ptr<DriWrapper> drm_; | 74 scoped_ptr<DriWrapper> drm_; |
71 | 75 |
72 HardwareState state_; | 76 HardwareState state_; |
73 | 77 |
74 // Active output. | 78 // Active output. |
75 scoped_ptr<HardwareDisplayController> controller_; | 79 scoped_ptr<HardwareDisplayController> controller_; |
76 | 80 |
77 scoped_ptr<DriSurface> cursor_surface_; | 81 scoped_ptr<DriSurface> cursor_surface_; |
78 | 82 |
| 83 SkBitmap cursor_bitmap_; |
| 84 gfx::Point cursor_location_; |
| 85 |
79 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); | 86 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); |
80 }; | 87 }; |
81 | 88 |
82 } // namespace gfx | 89 } // namespace gfx |
83 | 90 |
84 #endif // UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ | 91 #endif // UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ |
OLD | NEW |