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

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

Issue 2190353003: Delete old Ozone surface creation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 <memory> 8 #include <memory>
9 9
10 #include "base/atomic_ref_count.h" 10 #include "base/atomic_ref_count.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "ui/gfx/swap_result.h" 13 #include "ui/gfx/swap_result.h"
14 #include "ui/ozone/public/surface_ozone_egl.h" 14 #include "ui/ozone/public/swap_completion_callback.h"
15 15
16 namespace ui { 16 namespace ui {
17 17
18 class PageFlipRequest : public base::RefCounted<PageFlipRequest> { 18 class PageFlipRequest : public base::RefCounted<PageFlipRequest> {
19 public: 19 public:
20 PageFlipRequest(int crtc_count, const SwapCompletionCallback& callback); 20 PageFlipRequest(int crtc_count, const SwapCompletionCallback& callback);
21 21
22 void Signal(gfx::SwapResult result); 22 void Signal(gfx::SwapResult result);
23 23
24 private: 24 private:
25 friend class base::RefCounted<PageFlipRequest>; 25 friend class base::RefCounted<PageFlipRequest>;
26 ~PageFlipRequest(); 26 ~PageFlipRequest();
27 27
28 SwapCompletionCallback callback_; 28 SwapCompletionCallback callback_;
29 int crtc_count_; 29 int crtc_count_;
30 gfx::SwapResult result_ = gfx::SwapResult::SWAP_ACK; 30 gfx::SwapResult result_ = gfx::SwapResult::SWAP_ACK;
31 31
32 DISALLOW_COPY_AND_ASSIGN(PageFlipRequest); 32 DISALLOW_COPY_AND_ASSIGN(PageFlipRequest);
33 }; 33 };
34 34
35 } // namespace ui 35 } // namespace ui
36 36
37 #endif // UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_ 37 #endif // UI_OZONE_PLATFORM_DRM_GPU_PAGE_FLIP_REQUEST_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_surface_factory.cc ('k') | ui/ozone/platform/wayland/wayland_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698