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

Unified Diff: ui/ozone/platform/drm/gpu/drm_window.cc

Issue 1426993003: Ozone: Dont hardcode format to YUV when using Overlay Composition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete code Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/drm/gpu/drm_window.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_window.cc b/ui/ozone/platform/drm/gpu/drm_window.cc
index 2091636d22dc4ea5e074f896af9f95879bccb063..3c330be7b339c22abdad6ea45eb363c62a2f51c7 100644
--- a/ui/ozone/platform/drm/gpu/drm_window.cc
+++ b/ui/ozone/platform/drm/gpu/drm_window.cc
@@ -127,14 +127,16 @@ void DrmWindow::MoveCursor(const gfx::Point& location) {
}
void DrmWindow::SchedulePageFlip(const std::vector<OverlayPlane>& planes,
- const SwapCompletionCallback& callback) {
+ const SwapCompletionCallback& callback,
+ ScanoutBufferGenerator* buffer_generator) {
if (force_buffer_reallocation_) {
force_buffer_reallocation_ = false;
callback.Run(gfx::SwapResult::SWAP_NAK_RECREATE_BUFFERS);
return;
}
- last_submitted_planes_ = planes;
+ last_submitted_planes_ =
+ overlay_validator_->ValidatePlanesForPageFlip(planes, buffer_generator);
if (!controller_) {
callback.Run(gfx::SwapResult::SWAP_ACK);

Powered by Google App Engine
This is Rietveld 408576698