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

Side by Side Diff: ui/ozone/platform/drm/gpu/page_flip_request.h

Issue 1166463004: Revert of Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_
7 7
8 #include "base/atomic_ref_count.h"
9 #include "base/callback.h" 8 #include "base/callback.h"
10 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
11 #include "ui/gfx/swap_result.h"
12 #include "ui/ozone/public/surface_ozone_egl.h"
13 10
14 namespace ui { 11 namespace ui {
15 12
16 class PageFlipRequest : public base::RefCounted<PageFlipRequest> { 13 class PageFlipRequest : public base::RefCounted<PageFlipRequest> {
17 public: 14 public:
18 PageFlipRequest(int crtc_count, const SwapCompletionCallback& callback); 15 PageFlipRequest(int crtc_count, const base::Closure& callback);
19 16
20 void Signal(gfx::SwapResult result); 17 void Signal();
21 18
22 private: 19 private:
23 friend class base::RefCounted<PageFlipRequest>; 20 friend class base::RefCounted<PageFlipRequest>;
24 ~PageFlipRequest(); 21 ~PageFlipRequest();
25 22
26 SwapCompletionCallback callback_; 23 base::Closure callback_;
27 int crtc_count_;
28 gfx::SwapResult result_;
29 24
30 DISALLOW_COPY_AND_ASSIGN(PageFlipRequest); 25 DISALLOW_COPY_AND_ASSIGN(PageFlipRequest);
31 }; 26 };
32 27
33 } // namespace ui 28 } // namespace ui
34 29
35 #endif // UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_ 30 #endif // UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_
OLDNEW
« 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