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