| 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_HARDWARE_DISPLAY_CONTROLLER_H_ | 5 #ifndef UI_GFX_OZONE_DRI_HARDWARE_DISPLAY_CONTROLLER_H_ |
| 6 #define UI_GFX_OZONE_DRI_HARDWARE_DISPLAY_CONTROLLER_H_ | 6 #define UI_GFX_OZONE_DRI_HARDWARE_DISPLAY_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <xf86drmMode.h> | 10 #include <xf86drmMode.h> |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 // kernel when a VBlank event finished. This allows the controller to | 140 // kernel when a VBlank event finished. This allows the controller to |
| 141 // update internal state and propagate the update to the surface. | 141 // update internal state and propagate the update to the surface. |
| 142 // The tuple (seconds, useconds) represents the event timestamp. |seconds| | 142 // The tuple (seconds, useconds) represents the event timestamp. |seconds| |
| 143 // represents the number of seconds while |useconds| represents the | 143 // represents the number of seconds while |useconds| represents the |
| 144 // microseconds (< 1 second) in the timestamp. | 144 // microseconds (< 1 second) in the timestamp. |
| 145 void OnPageFlipEvent(unsigned int frame, | 145 void OnPageFlipEvent(unsigned int frame, |
| 146 unsigned int seconds, | 146 unsigned int seconds, |
| 147 unsigned int useconds); | 147 unsigned int useconds); |
| 148 | 148 |
| 149 // Set the hardware cursor to show the contents of |surface|. | 149 // Set the hardware cursor to show the contents of |surface|. |
| 150 bool SetCursor(const DriSurface& surface); | 150 bool SetCursor(DriSurface* surface); |
| 151 | 151 |
| 152 bool UnsetCursor(); | 152 bool UnsetCursor(); |
| 153 | 153 |
| 154 // Moves the hardware cursor to |location|. | 154 // Moves the hardware cursor to |location|. |
| 155 bool MoveCursor(const gfx::Point& location); | 155 bool MoveCursor(const gfx::Point& location); |
| 156 | 156 |
| 157 State get_state() const { return state_; }; | 157 State get_state() const { return state_; }; |
| 158 | 158 |
| 159 int get_fd() const { return drm_->get_fd(); }; | 159 int get_fd() const { return drm_->get_fd(); }; |
| 160 | 160 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 190 scoped_ptr<DriSurface> surface_; | 190 scoped_ptr<DriSurface> surface_; |
| 191 | 191 |
| 192 uint64_t time_of_last_flip_; | 192 uint64_t time_of_last_flip_; |
| 193 | 193 |
| 194 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); | 194 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 } // namespace gfx | 197 } // namespace gfx |
| 198 | 198 |
| 199 #endif // UI_GFX_OZONE_DRI_HARDWARE_DISPLAY_CONTROLLER_H_ | 199 #endif // UI_GFX_OZONE_DRI_HARDWARE_DISPLAY_CONTROLLER_H_ |
| OLD | NEW |