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

Side by Side 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, 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"
8 #include "base/callback.h" 9 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/gfx/swap_result.h"
12 #include "ui/ozone/public/surface_ozone_egl.h"
10 13
11 namespace ui { 14 namespace ui {
12 15
13 class PageFlipRequest : public base::RefCounted<PageFlipRequest> { 16 class PageFlipRequest : public base::RefCounted<PageFlipRequest> {
14 public: 17 public:
15 PageFlipRequest(int crtc_count, const base::Closure& callback); 18 PageFlipRequest(int crtc_count, const SwapCompletionCallback& callback);
16 19
17 void Signal(); 20 void Signal(gfx::SwapResult result);
18 21
19 private: 22 private:
20 friend class base::RefCounted<PageFlipRequest>; 23 friend class base::RefCounted<PageFlipRequest>;
21 ~PageFlipRequest(); 24 ~PageFlipRequest();
22 25
23 base::Closure callback_; 26 SwapCompletionCallback callback_;
27 int crtc_count_;
28 gfx::SwapResult result_;
24 29
25 DISALLOW_COPY_AND_ASSIGN(PageFlipRequest); 30 DISALLOW_COPY_AND_ASSIGN(PageFlipRequest);
26 }; 31 };
27 32
28 } // namespace ui 33 } // namespace ui
29 34
30 #endif // UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_ 35 #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