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

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

Issue 940903002: video_decode_accelerator_unittest: enable test on ozone surfaceless (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix remaining thumbnail issues 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
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 const PageFlipCallback& callback); 103 const PageFlipCallback& callback);
104 104
105 // Like |PageFlip| but synchronous.
106 virtual bool PageFlipSync(uint32_t crtc_id,
107 uint32_t framebuffer,
108 const PageFlipCallback& callback);
109
105 // Schedule an overlay to be show during the page flip for CRTC |crtc_id|. 110 // Schedule an overlay to be show during the page flip for CRTC |crtc_id|.
106 // |source| location from |framebuffer| will be shown on overlay 111 // |source| location from |framebuffer| will be shown on overlay
107 // |overlay_plane|, in the bounds specified by |location| on the screen. 112 // |overlay_plane|, in the bounds specified by |location| on the screen.
108 virtual bool PageFlipOverlay(uint32_t crtc_id, 113 virtual bool PageFlipOverlay(uint32_t crtc_id,
109 uint32_t framebuffer, 114 uint32_t framebuffer,
110 const gfx::Rect& location, 115 const gfx::Rect& location,
111 const gfx::Rect& source, 116 const gfx::Rect& source,
112 int overlay_plane); 117 int overlay_plane);
113 118
114 // Returns the property with name |name| associated with |connector|. Returns 119 // Returns the property with name |name| associated with |connector|. Returns
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 190
186 // Watcher for |fd_| listening for page flip events. 191 // Watcher for |fd_| listening for page flip events.
187 scoped_refptr<IOWatcher> watcher_; 192 scoped_refptr<IOWatcher> watcher_;
188 193
189 DISALLOW_COPY_AND_ASSIGN(DriWrapper); 194 DISALLOW_COPY_AND_ASSIGN(DriWrapper);
190 }; 195 };
191 196
192 } // namespace ui 197 } // namespace ui
193 198
194 #endif // UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_ 199 #endif // UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698