[gtk+/wip/william/deprecations: 8/10] mir: rename ensure_surface -> ensure_mir_window
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/william/deprecations: 8/10] mir: rename ensure_surface -> ensure_mir_window
- Date: Sat, 25 Feb 2017 00:23:46 +0000 (UTC)
commit 5377c68c9ed3549cf01655859fdfb8ede83bc8df
Author: William Hua <william hua canonical com>
Date: Fri Feb 24 16:08:32 2017 -0500
mir: rename ensure_surface -> ensure_mir_window
gdk/mir/gdkmirwindowimpl.c | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c
index f343710..eaac45b 100644
--- a/gdk/mir/gdkmirwindowimpl.c
+++ b/gdk/mir/gdkmirwindowimpl.c
@@ -139,7 +139,7 @@ struct _GdkMirWindowImplClass
G_DEFINE_TYPE (GdkMirWindowImpl, gdk_mir_window_impl, GDK_TYPE_WINDOW_IMPL)
static cairo_surface_t *gdk_mir_window_impl_ref_cairo_surface (GdkWindow *window);
-static void ensure_surface (GdkWindow *window);
+static void ensure_mir_window (GdkWindow *window);
static gboolean
type_hint_differs (GdkWindowTypeHint lhs, GdkWindowTypeHint rhs)
@@ -317,7 +317,7 @@ create_window_type_spec (GdkDisplay *display,
if (parent && parent->impl)
{
- ensure_surface (parent);
+ ensure_mir_window (parent);
parent_mir_window = GDK_MIR_WINDOW_IMPL (parent->impl)->mir_window;
}
@@ -531,8 +531,8 @@ generate_configure_event (GdkWindow *window,
}
static void
-ensure_surface_full (GdkWindow *window,
- MirBufferUsage buffer_usage)
+ensure_mir_window_full (GdkWindow *window,
+ MirBufferUsage buffer_usage)
{
GdkMirWindowImpl *impl = GDK_MIR_WINDOW_IMPL (window->impl);
GdkMirWindowReference *window_ref;
@@ -580,16 +580,16 @@ ensure_surface_full (GdkWindow *window,
}
static void
-ensure_surface (GdkWindow *window)
+ensure_mir_window (GdkWindow *window)
{
- ensure_surface_full (window,
- window->gl_paint_context ?
- mir_buffer_usage_hardware :
- mir_buffer_usage_software);
+ ensure_mir_window_full (window,
+ window->gl_paint_context ?
+ mir_buffer_usage_hardware :
+ mir_buffer_usage_software);
}
static void
-ensure_no_surface (GdkWindow *window)
+ensure_no_mir_window (GdkWindow *window)
{
GdkMirWindowImpl *impl = GDK_MIR_WINDOW_IMPL (window->impl);
@@ -651,7 +651,7 @@ gdk_mir_window_impl_ref_cairo_surface (GdkWindow *window)
return impl->cairo_surface;
}
- ensure_surface (window);
+ ensure_mir_window (window);
if (window->gl_paint_context)
{
@@ -754,7 +754,7 @@ gdk_mir_window_impl_show (GdkWindow *window,
set_surface_state (impl, mir_surface_state_restored);
/* Make sure there's a surface to see */
- ensure_surface (window);
+ ensure_mir_window (window);
if (!window->gl_paint_context)
{
@@ -1326,7 +1326,7 @@ gdk_mir_window_impl_destroy (GdkWindow *window,
GdkMirWindowImpl *impl = GDK_MIR_WINDOW_IMPL (window->impl);
impl->visible = FALSE;
- ensure_no_surface (window);
+ ensure_no_mir_window (window);
}
static void
@@ -2140,8 +2140,8 @@ _gdk_mir_window_get_egl_surface (GdkWindow *window,
EGLDisplay egl_display;
EGLNativeWindowType egl_window;
- ensure_no_surface (window);
- ensure_surface_full (window, mir_buffer_usage_hardware);
+ ensure_no_mir_window (window);
+ ensure_mir_window_full (window, mir_buffer_usage_hardware);
egl_display = _gdk_mir_display_get_egl_display (gdk_window_get_display (window));
egl_window = (EGLNativeWindowType) mir_buffer_stream_get_egl_native_window (impl->buffer_stream);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]