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

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

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ozone demo 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/crtc_controller.cc ('k') | ui/ozone/platform/drm/gpu/drm_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_surface.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_surface.cc b/ui/ozone/platform/drm/gpu/drm_surface.cc
index ccf0ce78392409dde22a19453cfbb76609d276f3..6528dbf9b10d0eac24d6dedf51981dd22b14ada7 100644
--- a/ui/ozone/platform/drm/gpu/drm_surface.cc
+++ b/ui/ozone/platform/drm/gpu/drm_surface.cc
@@ -20,6 +20,8 @@
namespace ui {
namespace {
+void EmptyPageFlipCallback(gfx::SwapResult result) {
+}
scoped_refptr<DrmBuffer> AllocateBuffer(const scoped_refptr<DrmDevice>& drm,
const gfx::Size& size) {
@@ -71,7 +73,7 @@ void DrmSurface::PresentCanvas(const gfx::Rect& damage) {
UpdateNativeSurface(damage);
window_delegate_->SchedulePageFlip(true /* is_sync */,
- base::Bind(&base::DoNothing));
+ base::Bind(&EmptyPageFlipCallback));
// Update our front buffer pointer.
front_buffer_ ^= 1;
« no previous file with comments | « ui/ozone/platform/drm/gpu/crtc_controller.cc ('k') | ui/ozone/platform/drm/gpu/drm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698