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

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

Issue 2443023002: gpu: Add CHROMIUM_copy_image extension.
Patch Set: rebase Created 4 years, 1 month 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 | « ui/gl/gl_surface_egl.cc ('k') | 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 bool ScheduleOverlayPlanes(gfx::AcceleratedWidget widget); 70 bool ScheduleOverlayPlanes(gfx::AcceleratedWidget widget);
71 void Flush(); 71 void Flush();
72 72
73 bool ready = false; 73 bool ready = false;
74 std::vector<gl::GLSurfaceOverlay> overlays; 74 std::vector<gl::GLSurfaceOverlay> overlays;
75 SwapCompletionCallback callback; 75 SwapCompletionCallback callback;
76 }; 76 };
77 77
78 void SubmitFrame(); 78 void SubmitFrame();
79 79 void FrameReady(PendingFrame* frame);
80 EGLSyncKHR InsertFence(bool implicit);
81 void FenceRetired(EGLSyncKHR fence, PendingFrame* frame);
82 80
83 void SwapCompleted(const SwapCompletionCallback& callback, 81 void SwapCompleted(const SwapCompletionCallback& callback,
84 gfx::SwapResult result); 82 gfx::SwapResult result);
85 83
86 bool IsUniversalDisplayLinkDevice(); 84 bool IsUniversalDisplayLinkDevice();
87 85
88 GbmSurfaceFactory* surface_factory_; 86 GbmSurfaceFactory* surface_factory_;
89 std::unique_ptr<DrmWindowProxy> window_; 87 std::unique_ptr<DrmWindowProxy> window_;
90 std::vector<OverlayPlane> planes_; 88 std::vector<OverlayPlane> planes_;
91 89
92 // The native surface. Deleting this is allowed to free the EGLNativeWindow. 90 // The native surface. Deleting this is allowed to free the EGLNativeWindow.
93 gfx::AcceleratedWidget widget_; 91 gfx::AcceleratedWidget widget_;
94 std::unique_ptr<gfx::VSyncProvider> vsync_provider_; 92 std::unique_ptr<gfx::VSyncProvider> vsync_provider_;
95 ScopedVector<PendingFrame> unsubmitted_frames_; 93 ScopedVector<PendingFrame> unsubmitted_frames_;
96 bool has_implicit_external_sync_; 94 bool has_implicit_external_sync_;
97 bool has_image_flush_external_; 95 bool has_image_flush_external_;
98 bool last_swap_buffers_result_ = true; 96 bool last_swap_buffers_result_ = true;
99 bool swap_buffers_pending_ = false; 97 bool swap_buffers_pending_ = false;
100 98
101 base::WeakPtrFactory<GbmSurfaceless> weak_factory_; 99 base::WeakPtrFactory<GbmSurfaceless> weak_factory_;
102 100
103 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless); 101 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless);
104 }; 102 };
105 103
106 } // namespace ui 104 } // namespace ui
107 105
108 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ 106 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | ui/ozone/platform/drm/gpu/gbm_surfaceless.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698