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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..01cc30ccc8eb65b1f51ab9903676dab9dfaf5fee |
--- /dev/null |
+++ b/ui/ozone/platform/drm/gpu/page_flip_request.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#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 SwapCompletionCallback& callback); |
+ |
+ void Signal(gfx::SwapResult result); |
+ |
+ private: |
+ friend class base::RefCounted<PageFlipRequest>; |
+ ~PageFlipRequest(); |
+ |
+ SwapCompletionCallback callback_; |
+ int crtc_count_; |
+ gfx::SwapResult result_ = gfx::SwapResult::SWAP_ACK; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PageFlipRequest); |
+}; |
+ |
+} // namespace ui |
+ |
+#endif // UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_ |