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