OLD | NEW |
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_DRM_GPU_DRM_WINDOW_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Move the HW cursor to the specified location. | 77 // Move the HW cursor to the specified location. |
78 void MoveCursor(const gfx::Point& location); | 78 void MoveCursor(const gfx::Point& location); |
79 | 79 |
80 // Queue overlay planes and page flips. | 80 // Queue overlay planes and page flips. |
81 // If hardware display controller is available, forward the information | 81 // If hardware display controller is available, forward the information |
82 // immediately, otherwise queue up on the window and forward when the hardware | 82 // immediately, otherwise queue up on the window and forward when the hardware |
83 // is once again ready. | 83 // is once again ready. |
84 void QueueOverlayPlane(const OverlayPlane& plane); | 84 void QueueOverlayPlane(const OverlayPlane& plane); |
85 | 85 |
86 bool SchedulePageFlip(bool is_sync, const SwapCompletionCallback& callback); | 86 bool SchedulePageFlip(bool is_sync, const SwapCompletionCallback& callback); |
| 87 bool TestPageFlip(const OverlayPlaneList& planes); |
87 | 88 |
88 // Returns the last buffer associated with this window. | 89 // Returns the last buffer associated with this window. |
89 const OverlayPlane* GetLastModesetBuffer(); | 90 const OverlayPlane* GetLastModesetBuffer(); |
90 | 91 |
91 private: | 92 private: |
92 // Draw the last set cursor & update the cursor plane. | 93 // Draw the last set cursor & update the cursor plane. |
93 void ResetCursor(bool bitmap_only); | 94 void ResetCursor(bool bitmap_only); |
94 | 95 |
95 // Draw next frame in an animated cursor. | 96 // Draw next frame in an animated cursor. |
96 void OnCursorAnimationTimeout(); | 97 void OnCursorAnimationTimeout(); |
(...skipping 29 matching lines...) Expand all Loading... |
126 OverlayPlaneList pending_planes_; | 127 OverlayPlaneList pending_planes_; |
127 OverlayPlaneList last_submitted_planes_; | 128 OverlayPlaneList last_submitted_planes_; |
128 bool last_swap_sync_; | 129 bool last_swap_sync_; |
129 | 130 |
130 DISALLOW_COPY_AND_ASSIGN(DrmWindow); | 131 DISALLOW_COPY_AND_ASSIGN(DrmWindow); |
131 }; | 132 }; |
132 | 133 |
133 } // namespace ui | 134 } // namespace ui |
134 | 135 |
135 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ | 136 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ |
OLD | NEW |