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

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

Issue 1157793004: ozone: Add overlay candidate implementation that queries support via IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix leak, other comments Created 5 years, 7 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 b2f7a460bb2ecbefab95a557bdd3600a68f6234b..ac12fe28c7cb78692cea5c8a12b996799949b4f6 100644
--- a/ui/ozone/platform/drm/gpu/drm_window.cc
+++ b/ui/ozone/platform/drm/gpu/drm_window.cc
@@ -25,6 +25,9 @@ namespace {
#define DRM_CAP_CURSOR_HEIGHT 0x9
#endif
+void EmptyFlipCallback(gfx::SwapResult) {
+}
+
void UpdateCursorImage(DrmBuffer* cursor, const SkBitmap& image) {
SkRect damage;
image.getBounds(&damage);
@@ -139,6 +142,12 @@ bool DrmWindow::SchedulePageFlip(bool is_sync,
return true;
}
+bool DrmWindow::TestPageFlip(const OverlayPlaneList& planes) {
+ return controller_ &&
spang 2015/06/01 19:47:39 Shouldn't it be if (!controller_) return true;
achaulk 2015/06/01 20:43:08 Sure? It doesn't really matter what we return
+ controller_->SchedulePageFlip(last_submitted_planes_, true, true,
+ base::Bind(&EmptyFlipCallback));
+}
+
const OverlayPlane* DrmWindow::GetLastModesetBuffer() {
return OverlayPlane::GetPrimaryPlane(last_submitted_planes_);
}

Powered by Google App Engine
This is Rietveld 408576698