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

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: address comments 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 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 typedef SurfaceOzoneEGL::SwapCompletionCallback SwapCompletionCallback;
dnicoara 2015/05/08 15:15:41 nit: Would it make sense to typedef this outside a
achaulk 2015/05/14 18:15:46 Sure, though it's either adding a typedef here or
dnicoara 2015/05/14 18:44:54 I was hoping to have the typedef done in one place
achaulk 2015/05/14 18:53:05 One for the entire build or for ozone?
dnicoara 2015/05/14 18:58:59 Whichever is more reasonable. I think this is only
achaulk 2015/05/14 20:38:26 Done.
19 PageFlipRequest(int crtc_count, const SwapCompletionCallback& callback);
16 20
17 void Signal(); 21 void Signal(gfx::SwapResult result);
18 22
19 private: 23 private:
20 friend class base::RefCounted<PageFlipRequest>; 24 friend class base::RefCounted<PageFlipRequest>;
21 ~PageFlipRequest(); 25 ~PageFlipRequest();
22 26
23 base::Closure callback_; 27 SwapCompletionCallback callback_;
28 int refcount_;
29 gfx::SwapResult result_;
24 30
25 DISALLOW_COPY_AND_ASSIGN(PageFlipRequest); 31 DISALLOW_COPY_AND_ASSIGN(PageFlipRequest);
26 }; 32 };
27 33
28 } // namespace ui 34 } // namespace ui
29 35
30 #endif // UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_ 36 #endif // UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698