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

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

Issue 2908313002: Revert of gpu: Use ANDROID_native_fence_sync instead of ARM_implicit_external_sync. (Closed)
Patch Set: Created 3 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 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 bool ScheduleOverlayPlanes(gfx::AcceleratedWidget widget); 69 bool ScheduleOverlayPlanes(gfx::AcceleratedWidget widget);
70 void Flush(); 70 void Flush();
71 71
72 bool ready = false; 72 bool ready = false;
73 std::vector<gl::GLSurfaceOverlay> overlays; 73 std::vector<gl::GLSurfaceOverlay> overlays;
74 SwapCompletionCallback callback; 74 SwapCompletionCallback callback;
75 }; 75 };
76 76
77 void SubmitFrame(); 77 void SubmitFrame();
78 78
79 EGLSyncKHR InsertFence(bool native); 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 GbmSurfaceFactory* surface_factory_; 85 GbmSurfaceFactory* surface_factory_;
86 std::unique_ptr<DrmWindowProxy> window_; 86 std::unique_ptr<DrmWindowProxy> window_;
87 std::vector<OverlayPlane> planes_; 87 std::vector<OverlayPlane> planes_;
88 88
89 // The native surface. Deleting this is allowed to free the EGLNativeWindow. 89 // The native surface. Deleting this is allowed to free the EGLNativeWindow.
90 gfx::AcceleratedWidget widget_; 90 gfx::AcceleratedWidget widget_;
91 std::unique_ptr<gfx::VSyncProvider> vsync_provider_; 91 std::unique_ptr<gfx::VSyncProvider> vsync_provider_;
92 std::vector<std::unique_ptr<PendingFrame>> unsubmitted_frames_; 92 std::vector<std::unique_ptr<PendingFrame>> unsubmitted_frames_;
93 bool has_native_fence_sync_; 93 bool has_implicit_external_sync_;
94 bool last_swap_buffers_result_ = true; 94 bool last_swap_buffers_result_ = true;
95 bool swap_buffers_pending_ = false; 95 bool swap_buffers_pending_ = false;
96 96
97 base::WeakPtrFactory<GbmSurfaceless> weak_factory_; 97 base::WeakPtrFactory<GbmSurfaceless> weak_factory_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless); 99 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless);
100 }; 100 };
101 101
102 } // namespace ui 102 } // namespace ui
103 103
104 #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 | « gpu/ipc/common/gpu_command_buffer_traits_multi.h ('k') | ui/ozone/platform/drm/gpu/gbm_surfaceless.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698