OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_ |
| 7 |
| 8 #include "base/atomic_ref_count.h" |
| 9 #include "base/callback.h" |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "ui/gfx/swap_result.h" |
| 12 #include "ui/ozone/public/surface_ozone_egl.h" |
| 13 |
| 14 namespace ui { |
| 15 |
| 16 class PageFlipRequest : public base::RefCounted<PageFlipRequest> { |
| 17 public: |
| 18 PageFlipRequest(int crtc_count, const SwapCompletionCallback& callback); |
| 19 |
| 20 void Signal(gfx::SwapResult result); |
| 21 |
| 22 private: |
| 23 friend class base::RefCounted<PageFlipRequest>; |
| 24 ~PageFlipRequest(); |
| 25 |
| 26 SwapCompletionCallback callback_; |
| 27 int crtc_count_; |
| 28 gfx::SwapResult result_ = gfx::SwapResult::SWAP_ACK; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(PageFlipRequest); |
| 31 }; |
| 32 |
| 33 } // namespace ui |
| 34 |
| 35 #endif // UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_ |
OLD | NEW |