summaryrefslogtreecommitdiff
path: root/cogl/cogl/cogl-scanout.c
diff options
context:
space:
mode:
Diffstat (limited to 'cogl/cogl/cogl-scanout.c')
-rw-r--r--cogl/cogl/cogl-scanout.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/cogl/cogl/cogl-scanout.c b/cogl/cogl/cogl-scanout.c
index 759cd62a4..fcc14181d 100644
--- a/cogl/cogl/cogl-scanout.c
+++ b/cogl/cogl/cogl-scanout.c
@@ -25,3 +25,22 @@ static void
cogl_scanout_default_init (CoglScanoutInterface *iface)
{
}
+
+gboolean
+cogl_scanout_blit_to_framebuffer (CoglScanout *scanout,
+ CoglFramebuffer *framebuffer,
+ int x,
+ int y,
+ GError **error)
+{
+ CoglScanoutInterface *iface;
+
+ g_return_val_if_fail (COGL_IS_SCANOUT (scanout), FALSE);
+
+ iface = COGL_SCANOUT_GET_IFACE (scanout);
+
+ if (iface->blit_to_framebuffer)
+ return iface->blit_to_framebuffer (scanout, framebuffer, x, y, error);
+ else
+ return FALSE;
+}