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

Unified Diff: ui/ozone/platform/drm/gpu/page_flip_request.h

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
Index: ui/ozone/platform/drm/gpu/page_flip_request.h
diff --git a/ui/ozone/platform/drm/gpu/page_flip_request.h b/ui/ozone/platform/drm/gpu/page_flip_request.h
index c1a63b25389d6847a3ae0287f44b54fd2c61332e..6daa8a3b69fee830ddb953ccd75dcf064bfbc720 100644
--- a/ui/ozone/platform/drm/gpu/page_flip_request.h
+++ b/ui/ozone/platform/drm/gpu/page_flip_request.h
@@ -5,22 +5,27 @@
#ifndef UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_
#define UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_
+#include "base/atomic_ref_count.h"
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
+#include "ui/gfx/swap_result.h"
+#include "ui/ozone/public/surface_ozone_egl.h"
namespace ui {
class PageFlipRequest : public base::RefCounted<PageFlipRequest> {
public:
- PageFlipRequest(int crtc_count, const base::Closure& callback);
+ PageFlipRequest(int crtc_count, const SwapCompletionCallback& callback);
- void Signal();
+ void Signal(gfx::SwapResult result);
private:
friend class base::RefCounted<PageFlipRequest>;
~PageFlipRequest();
- base::Closure callback_;
+ SwapCompletionCallback callback_;
+ int crtc_count_;
+ gfx::SwapResult result_;
DISALLOW_COPY_AND_ASSIGN(PageFlipRequest);
};
« no previous file with comments | « ui/ozone/platform/drm/gpu/hardware_display_controller_unittest.cc ('k') | ui/ozone/platform/drm/gpu/page_flip_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698