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

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: change swapbuffers return 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_surface.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_surface.cc b/ui/ozone/platform/drm/gpu/drm_surface.cc
index 0964c9e6997ddfa7948cd6af8591295ffac63398..4b5796b35206090e7ec03e8e4eac9891eb7f174a 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(false /* is_sync */,
- base::Bind(&base::DoNothing));
+ base::Bind(&EmptyPageFlipCallback));
// Update our front buffer pointer.
front_buffer_ ^= 1;

Powered by Google App Engine
This is Rietveld 408576698