OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |