| 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/macros.h" | 10 #include "base/macros.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 // Update the HW cursor bitmap & move to specified location. If | 81 // Update the HW cursor bitmap & move to specified location. If |
| 82 // the bitmap is empty, the cursor is hidden. | 82 // the bitmap is empty, the cursor is hidden. |
| 83 void SetCursorWithoutAnimations(const std::vector<SkBitmap>& bitmaps, | 83 void SetCursorWithoutAnimations(const std::vector<SkBitmap>& bitmaps, |
| 84 const gfx::Point& location); | 84 const gfx::Point& location); |
| 85 | 85 |
| 86 // Move the HW cursor to the specified location. | 86 // Move the HW cursor to the specified location. |
| 87 void MoveCursor(const gfx::Point& location); | 87 void MoveCursor(const gfx::Point& location); |
| 88 | 88 |
| 89 void SchedulePageFlip(const std::vector<OverlayPlane>& planes, | 89 void SchedulePageFlip(const std::vector<OverlayPlane>& planes, |
| 90 const SwapCompletionCallback& callback); | 90 const SwapCompletionCallback& callback, |
| 91 ScanoutBufferGenerator* buffer_generator); |
| 91 std::vector<OverlayCheck_Params> TestPageFlip( | 92 std::vector<OverlayCheck_Params> TestPageFlip( |
| 92 const std::vector<OverlayCheck_Params>& overlay_params, | 93 const std::vector<OverlayCheck_Params>& overlay_params, |
| 93 ScanoutBufferGenerator* buffer_generator); | 94 ScanoutBufferGenerator* buffer_generator); |
| 94 | 95 |
| 95 // Returns the last buffer associated with this window. | 96 // Returns the last buffer associated with this window. |
| 96 const OverlayPlane* GetLastModesetBuffer(); | 97 const OverlayPlane* GetLastModesetBuffer(); |
| 97 | 98 |
| 98 void GetVSyncParameters( | 99 void GetVSyncParameters( |
| 99 const gfx::VSyncProvider::UpdateVSyncCallback& callback) const; | 100 const gfx::VSyncProvider::UpdateVSyncCallback& callback) const; |
| 100 | 101 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 OverlayPlaneList last_submitted_planes_; | 136 OverlayPlaneList last_submitted_planes_; |
| 136 | 137 |
| 137 bool force_buffer_reallocation_ = false; | 138 bool force_buffer_reallocation_ = false; |
| 138 | 139 |
| 139 DISALLOW_COPY_AND_ASSIGN(DrmWindow); | 140 DISALLOW_COPY_AND_ASSIGN(DrmWindow); |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 } // namespace ui | 143 } // namespace ui |
| 143 | 144 |
| 144 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ | 145 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ |
| OLD | NEW |