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

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

Issue 2858693002: ozone: Wait on EGLFence before committing buffers. Avoid using GL. (Closed)
Patch Set: Rebase on master. 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
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
87 GbmSurfaceFactory* surface_factory_; 85 GbmSurfaceFactory* surface_factory_;
88 std::unique_ptr<DrmWindowProxy> window_; 86 std::unique_ptr<DrmWindowProxy> window_;
89 std::vector<OverlayPlane> planes_; 87 std::vector<OverlayPlane> planes_;
90 88
91 // The native surface. Deleting this is allowed to free the EGLNativeWindow. 89 // The native surface. Deleting this is allowed to free the EGLNativeWindow.
92 gfx::AcceleratedWidget widget_; 90 gfx::AcceleratedWidget widget_;
93 std::unique_ptr<gfx::VSyncProvider> vsync_provider_; 91 std::unique_ptr<gfx::VSyncProvider> vsync_provider_;
94 std::vector<std::unique_ptr<PendingFrame>> unsubmitted_frames_; 92 std::vector<std::unique_ptr<PendingFrame>> unsubmitted_frames_;
95 bool has_implicit_external_sync_; 93 bool has_implicit_external_sync_;
96 bool has_image_flush_external_;
97 bool last_swap_buffers_result_ = true; 94 bool last_swap_buffers_result_ = true;
98 bool swap_buffers_pending_ = false; 95 bool swap_buffers_pending_ = false;
99 96
100 base::WeakPtrFactory<GbmSurfaceless> weak_factory_; 97 base::WeakPtrFactory<GbmSurfaceless> weak_factory_;
101 98
102 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless); 99 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless);
103 }; 100 };
104 101
105 } // namespace ui 102 } // namespace ui
106 103
107 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ 104 #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') | ui/ozone/platform/drm/gpu/gbm_surfaceless.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698