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

Side by Side Diff: ui/ozone/platform/dri/dri_wrapper.h

Issue 960273003: ozone: dri: add synchronous SwapBuffers support on surfaceless (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 5 years, 9 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 | « ui/ozone/platform/dri/dri_surface.cc ('k') | ui/ozone/platform/dri/dri_wrapper.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 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_DRI_DRI_WRAPPER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_ 6 #define UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // Get the DRM details associated with |framebuffer|. 94 // Get the DRM details associated with |framebuffer|.
95 virtual ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer); 95 virtual ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer);
96 96
97 // Schedules a pageflip for CRTC |crtc_id|. This function will return 97 // Schedules a pageflip for CRTC |crtc_id|. This function will return
98 // immediately. Upon completion of the pageflip event, the CRTC will be 98 // immediately. Upon completion of the pageflip event, the CRTC will be
99 // displaying the buffer with ID |framebuffer| and will have a DRM event 99 // displaying the buffer with ID |framebuffer| and will have a DRM event
100 // queued on |fd_|. 100 // queued on |fd_|.
101 virtual bool PageFlip(uint32_t crtc_id, 101 virtual bool PageFlip(uint32_t crtc_id,
102 uint32_t framebuffer, 102 uint32_t framebuffer,
103 bool is_sync,
103 const PageFlipCallback& callback); 104 const PageFlipCallback& callback);
104 105
105 // Schedule an overlay to be show during the page flip for CRTC |crtc_id|. 106 // Schedule an overlay to be show during the page flip for CRTC |crtc_id|.
106 // |source| location from |framebuffer| will be shown on overlay 107 // |source| location from |framebuffer| will be shown on overlay
107 // |overlay_plane|, in the bounds specified by |location| on the screen. 108 // |overlay_plane|, in the bounds specified by |location| on the screen.
108 virtual bool PageFlipOverlay(uint32_t crtc_id, 109 virtual bool PageFlipOverlay(uint32_t crtc_id,
109 uint32_t framebuffer, 110 uint32_t framebuffer,
110 const gfx::Rect& location, 111 const gfx::Rect& location,
111 const gfx::Rect& source, 112 const gfx::Rect& source,
112 int overlay_plane); 113 int overlay_plane);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 186
186 // Watcher for |fd_| listening for page flip events. 187 // Watcher for |fd_| listening for page flip events.
187 scoped_refptr<IOWatcher> watcher_; 188 scoped_refptr<IOWatcher> watcher_;
188 189
189 DISALLOW_COPY_AND_ASSIGN(DriWrapper); 190 DISALLOW_COPY_AND_ASSIGN(DriWrapper);
190 }; 191 };
191 192
192 } // namespace ui 193 } // namespace ui
193 194
194 #endif // UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_ 195 #endif // UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_surface.cc ('k') | ui/ozone/platform/dri/dri_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698