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

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

Issue 2866903002: Revert of ozone: Wait on EGLFence before committing buffers. Avoid using GL. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/gbm_surfaceless.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_GBM_SURFACELESS_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 }; 75 };
76 76
77 void SubmitFrame(); 77 void SubmitFrame();
78 78
79 EGLSyncKHR InsertFence(bool implicit); 79 EGLSyncKHR InsertFence(bool implicit);
80 void FenceRetired(EGLSyncKHR fence, PendingFrame* frame); 80 void FenceRetired(EGLSyncKHR fence, PendingFrame* frame);
81 81
82 void SwapCompleted(const SwapCompletionCallback& callback, 82 void SwapCompleted(const SwapCompletionCallback& callback,
83 gfx::SwapResult result); 83 gfx::SwapResult result);
84 84
85 bool IsUniversalDisplayLinkDevice();
86
85 GbmSurfaceFactory* surface_factory_; 87 GbmSurfaceFactory* surface_factory_;
86 std::unique_ptr<DrmWindowProxy> window_; 88 std::unique_ptr<DrmWindowProxy> window_;
87 std::vector<OverlayPlane> planes_; 89 std::vector<OverlayPlane> planes_;
88 90
89 // The native surface. Deleting this is allowed to free the EGLNativeWindow. 91 // The native surface. Deleting this is allowed to free the EGLNativeWindow.
90 gfx::AcceleratedWidget widget_; 92 gfx::AcceleratedWidget widget_;
91 std::unique_ptr<gfx::VSyncProvider> vsync_provider_; 93 std::unique_ptr<gfx::VSyncProvider> vsync_provider_;
92 std::vector<std::unique_ptr<PendingFrame>> unsubmitted_frames_; 94 std::vector<std::unique_ptr<PendingFrame>> unsubmitted_frames_;
93 bool has_implicit_external_sync_; 95 bool has_implicit_external_sync_;
96 bool has_image_flush_external_;
94 bool last_swap_buffers_result_ = true; 97 bool last_swap_buffers_result_ = true;
95 bool swap_buffers_pending_ = false; 98 bool swap_buffers_pending_ = false;
96 99
97 base::WeakPtrFactory<GbmSurfaceless> weak_factory_; 100 base::WeakPtrFactory<GbmSurfaceless> weak_factory_;
98 101
99 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless); 102 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless);
100 }; 103 };
101 104
102 } // namespace ui 105 } // namespace ui
103 106
104 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ 107 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/gbm_surfaceless.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698