| 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 14 matching lines...) Expand all Loading... |
| 25 class Rect; | 25 class Rect; |
| 26 } // namespace gfx | 26 } // namespace gfx |
| 27 | 27 |
| 28 namespace ui { | 28 namespace ui { |
| 29 | 29 |
| 30 class DrmBuffer; | 30 class DrmBuffer; |
| 31 class DrmDeviceManager; | 31 class DrmDeviceManager; |
| 32 class DrmOverlayValidator; | 32 class DrmOverlayValidator; |
| 33 class HardwareDisplayController; | 33 class HardwareDisplayController; |
| 34 struct OverlayCheck_Params; | 34 struct OverlayCheck_Params; |
| 35 struct OverlayCheckReturn_Params; |
| 35 class ScanoutBufferGenerator; | 36 class ScanoutBufferGenerator; |
| 36 class ScreenManager; | 37 class ScreenManager; |
| 37 | 38 |
| 38 // The GPU object representing a window. | 39 // The GPU object representing a window. |
| 39 // | 40 // |
| 40 // The main purpose of this object is to associate drawing surfaces with | 41 // The main purpose of this object is to associate drawing surfaces with |
| 41 // displays. A surface created with the same id as the window (from | 42 // displays. A surface created with the same id as the window (from |
| 42 // GetAcceleratedWidget()) will paint onto that window. A window with | 43 // GetAcceleratedWidget()) will paint onto that window. A window with |
| 43 // the same bounds as a display will paint onto that display. | 44 // the same bounds as a display will paint onto that display. |
| 44 // | 45 // |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // Update the HW cursor bitmap & move to specified location. If | 80 // Update the HW cursor bitmap & move to specified location. If |
| 80 // the bitmap is empty, the cursor is hidden. | 81 // the bitmap is empty, the cursor is hidden. |
| 81 void SetCursorWithoutAnimations(const std::vector<SkBitmap>& bitmaps, | 82 void SetCursorWithoutAnimations(const std::vector<SkBitmap>& bitmaps, |
| 82 const gfx::Point& location); | 83 const gfx::Point& location); |
| 83 | 84 |
| 84 // Move the HW cursor to the specified location. | 85 // Move the HW cursor to the specified location. |
| 85 void MoveCursor(const gfx::Point& location); | 86 void MoveCursor(const gfx::Point& location); |
| 86 | 87 |
| 87 void SchedulePageFlip(const std::vector<OverlayPlane>& planes, | 88 void SchedulePageFlip(const std::vector<OverlayPlane>& planes, |
| 88 SwapCompletionOnceCallback callback); | 89 SwapCompletionOnceCallback callback); |
| 89 std::vector<OverlayCheck_Params> TestPageFlip( | 90 std::vector<OverlayCheckReturn_Params> TestPageFlip( |
| 90 const std::vector<OverlayCheck_Params>& overlay_params); | 91 const std::vector<OverlayCheck_Params>& overlay_params); |
| 91 | 92 |
| 92 // Returns the last buffer associated with this window. | 93 // Returns the last buffer associated with this window. |
| 93 const OverlayPlane* GetLastModesetBuffer(); | 94 const OverlayPlane* GetLastModesetBuffer(); |
| 94 | 95 |
| 95 void GetVSyncParameters( | 96 void GetVSyncParameters( |
| 96 const gfx::VSyncProvider::UpdateVSyncCallback& callback) const; | 97 const gfx::VSyncProvider::UpdateVSyncCallback& callback) const; |
| 97 | 98 |
| 98 private: | 99 private: |
| 99 // Draw the last set cursor & update the cursor plane. | 100 // Draw the last set cursor & update the cursor plane. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 OverlayPlaneList last_submitted_planes_; | 133 OverlayPlaneList last_submitted_planes_; |
| 133 | 134 |
| 134 bool force_buffer_reallocation_ = false; | 135 bool force_buffer_reallocation_ = false; |
| 135 | 136 |
| 136 DISALLOW_COPY_AND_ASSIGN(DrmWindow); | 137 DISALLOW_COPY_AND_ASSIGN(DrmWindow); |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 } // namespace ui | 140 } // namespace ui |
| 140 | 141 |
| 141 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ | 142 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ |
| OLD | NEW |