| 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 #include "ui/ozone/platform/drm/gpu/drm_window.h" | 5 #include "ui/ozone/platform/drm/gpu/drm_window.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 overlay_validator_->PrepareBuffersForPageFlip(planes); | 140 overlay_validator_->PrepareBuffersForPageFlip(planes); |
| 141 | 141 |
| 142 if (!controller_) { | 142 if (!controller_) { |
| 143 std::move(callback).Run(gfx::SwapResult::SWAP_ACK); | 143 std::move(callback).Run(gfx::SwapResult::SWAP_ACK); |
| 144 return; | 144 return; |
| 145 } | 145 } |
| 146 | 146 |
| 147 controller_->SchedulePageFlip(last_submitted_planes_, std::move(callback)); | 147 controller_->SchedulePageFlip(last_submitted_planes_, std::move(callback)); |
| 148 } | 148 } |
| 149 | 149 |
| 150 std::vector<OverlayCheck_Params> DrmWindow::TestPageFlip( | 150 std::vector<OverlayCheckReturn_Params> DrmWindow::TestPageFlip( |
| 151 const std::vector<OverlayCheck_Params>& overlay_params) { | 151 const std::vector<OverlayCheck_Params>& overlay_params) { |
| 152 return overlay_validator_->TestPageFlip(overlay_params, | 152 return overlay_validator_->TestPageFlip(overlay_params, |
| 153 last_submitted_planes_); | 153 last_submitted_planes_); |
| 154 } | 154 } |
| 155 | 155 |
| 156 const OverlayPlane* DrmWindow::GetLastModesetBuffer() { | 156 const OverlayPlane* DrmWindow::GetLastModesetBuffer() { |
| 157 return OverlayPlane::GetPrimaryPlane(last_submitted_planes_); | 157 return OverlayPlane::GetPrimaryPlane(last_submitted_planes_); |
| 158 } | 158 } |
| 159 | 159 |
| 160 void DrmWindow::GetVSyncParameters( | 160 void DrmWindow::GetVSyncParameters( |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 if (!cursor_buffers_[i]->Initialize( | 246 if (!cursor_buffers_[i]->Initialize( |
| 247 info, false /* should_register_framebuffer */)) { | 247 info, false /* should_register_framebuffer */)) { |
| 248 LOG(FATAL) << "Failed to initialize cursor buffer"; | 248 LOG(FATAL) << "Failed to initialize cursor buffer"; |
| 249 return; | 249 return; |
| 250 } | 250 } |
| 251 } | 251 } |
| 252 } | 252 } |
| 253 } | 253 } |
| 254 | 254 |
| 255 } // namespace ui | 255 } // namespace ui |
| OLD | NEW |