Index: ui/ozone/platform/dri/dri_wrapper.h |
diff --git a/ui/ozone/platform/dri/dri_wrapper.h b/ui/ozone/platform/dri/dri_wrapper.h |
index da5c99b156bf60c265be9e77271ac7f17af87dba..9b94ddda1e17841dc48fb67a7787c7725acdea7f 100644 |
--- a/ui/ozone/platform/dri/dri_wrapper.h |
+++ b/ui/ozone/platform/dri/dri_wrapper.h |
@@ -8,6 +8,9 @@ |
#include <stdint.h> |
#include "base/macros.h" |
+#include "ui/gfx/overlay_transform.h" |
+#include "ui/gfx/rect.h" |
+#include "ui/gfx/rect_f.h" |
#include "ui/ozone/platform/dri/scoped_drm_types.h" |
typedef struct _drmEventContext drmEventContext; |
@@ -67,6 +70,15 @@ class DriWrapper { |
// will receive when processing the pageflip event. |
virtual bool PageFlip(uint32_t crtc_id, uint32_t framebuffer, void* data); |
+ // Schedule an overlay to be show during the page flip for CRTC |crtc_id|. |
+ // |source| location from |framebuffer| will be shown on overlay |
+ // |overlay_plane|, in the bounds specified by |location| on the screen. |
+ virtual bool PageFlipOverlay(uint32_t crtc_id, |
+ uint32_t framebuffer, |
+ const gfx::Rect& location, |
+ const gfx::RectF& source, |
+ int overlay_plane); |
+ |
// Returns the property with name |name| associated with |connector|. Returns |
// NULL if property not found. If the returned value is valid, it must be |
// released using FreeProperty(). |