Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_window.cc

Issue 2896173002: ozone: introduce OverlayCheckReturn_Params (Closed)
Patch Set: ozone: fix broken overlay promotion. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698