mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
GdkWin32: Implement GdkDrawContext::empty_frame() vfunc
This commit is contained in:
parent
ead1b36afd
commit
57dde7e877
@ -153,6 +153,11 @@ gdk_win32_cairo_context_end_frame (GdkDrawContext *draw_context,
|
|||||||
g_clear_pointer (&self->window_surface, cairo_surface_destroy);
|
g_clear_pointer (&self->window_surface, cairo_surface_destroy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gdk_win32_cairo_context_empty_frame (GdkDrawContext *draw_context)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static cairo_t *
|
static cairo_t *
|
||||||
gdk_win32_cairo_context_cairo_create (GdkCairoContext *context)
|
gdk_win32_cairo_context_cairo_create (GdkCairoContext *context)
|
||||||
{
|
{
|
||||||
@ -182,6 +187,7 @@ gdk_win32_cairo_context_class_init (GdkWin32CairoContextClass *klass)
|
|||||||
|
|
||||||
draw_context_class->begin_frame = gdk_win32_cairo_context_begin_frame;
|
draw_context_class->begin_frame = gdk_win32_cairo_context_begin_frame;
|
||||||
draw_context_class->end_frame = gdk_win32_cairo_context_end_frame;
|
draw_context_class->end_frame = gdk_win32_cairo_context_end_frame;
|
||||||
|
draw_context_class->empty_frame = gdk_win32_cairo_context_empty_frame;
|
||||||
|
|
||||||
cairo_context_class->cairo_create = gdk_win32_cairo_context_cairo_create;
|
cairo_context_class->cairo_create = gdk_win32_cairo_context_cairo_create;
|
||||||
}
|
}
|
||||||
|
@ -117,6 +117,11 @@ gdk_win32_gl_context_egl_begin_frame (GdkDrawContext *draw_context,
|
|||||||
GDK_DRAW_CONTEXT_CLASS (gdk_win32_gl_context_egl_parent_class)->begin_frame (draw_context, depth, update_area);
|
GDK_DRAW_CONTEXT_CLASS (gdk_win32_gl_context_egl_parent_class)->begin_frame (draw_context, depth, update_area);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gdk_win32_gl_context_egl_empty_frame (GdkDrawContext *draw_context)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gdk_win32_gl_context_egl_class_init (GdkWin32GLContextClass *klass)
|
gdk_win32_gl_context_egl_class_init (GdkWin32GLContextClass *klass)
|
||||||
{
|
{
|
||||||
@ -127,6 +132,7 @@ gdk_win32_gl_context_egl_class_init (GdkWin32GLContextClass *klass)
|
|||||||
|
|
||||||
draw_context_class->begin_frame = gdk_win32_gl_context_egl_begin_frame;
|
draw_context_class->begin_frame = gdk_win32_gl_context_egl_begin_frame;
|
||||||
draw_context_class->end_frame = gdk_win32_gl_context_egl_end_frame;
|
draw_context_class->end_frame = gdk_win32_gl_context_egl_end_frame;
|
||||||
|
draw_context_class->empty_frame = gdk_win32_gl_context_egl_empty_frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -116,6 +116,11 @@ gdk_win32_gl_context_wgl_end_frame (GdkDrawContext *draw_context,
|
|||||||
SwapBuffers (hdc);
|
SwapBuffers (hdc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gdk_win32_gl_context_wgl_empty_frame (GdkDrawContext *draw_context)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gdk_win32_gl_context_wgl_begin_frame (GdkDrawContext *draw_context,
|
gdk_win32_gl_context_wgl_begin_frame (GdkDrawContext *draw_context,
|
||||||
GdkMemoryDepth depth,
|
GdkMemoryDepth depth,
|
||||||
@ -809,6 +814,8 @@ gdk_win32_gl_context_wgl_class_init (GdkWin32GLContextWGLClass *klass)
|
|||||||
|
|
||||||
draw_context_class->begin_frame = gdk_win32_gl_context_wgl_begin_frame;
|
draw_context_class->begin_frame = gdk_win32_gl_context_wgl_begin_frame;
|
||||||
draw_context_class->end_frame = gdk_win32_gl_context_wgl_end_frame;
|
draw_context_class->end_frame = gdk_win32_gl_context_wgl_end_frame;
|
||||||
|
draw_context_class->empty_frame = gdk_win32_gl_context_wgl_empty_frame;
|
||||||
|
|
||||||
gobject_class->dispose = gdk_win32_gl_context_wgl_dispose;
|
gobject_class->dispose = gdk_win32_gl_context_wgl_dispose;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,6 +74,11 @@ gdk_win32_vulkan_context_begin_frame (GdkDrawContext *draw_context,
|
|||||||
GDK_DRAW_CONTEXT_CLASS (gdk_win32_vulkan_context_parent_class)->begin_frame (draw_context, depth, update_area);
|
GDK_DRAW_CONTEXT_CLASS (gdk_win32_vulkan_context_parent_class)->begin_frame (draw_context, depth, update_area);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gdk_win32_vulkan_context_empty_frame (GdkDrawContext *draw_context)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gdk_win32_vulkan_context_class_init (GdkWin32VulkanContextClass *klass)
|
gdk_win32_vulkan_context_class_init (GdkWin32VulkanContextClass *klass)
|
||||||
{
|
{
|
||||||
@ -82,6 +87,7 @@ gdk_win32_vulkan_context_class_init (GdkWin32VulkanContextClass *klass)
|
|||||||
|
|
||||||
context_class->create_surface = gdk_win32_vulkan_context_create_surface;
|
context_class->create_surface = gdk_win32_vulkan_context_create_surface;
|
||||||
draw_context_class->begin_frame = gdk_win32_vulkan_context_begin_frame;
|
draw_context_class->begin_frame = gdk_win32_vulkan_context_begin_frame;
|
||||||
|
draw_context_class->empty_frame = gdk_win32_vulkan_context_empty_frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user