[gtk/wip/chergert/macos-perf-fixes: 5/7] macos: mark region as unlikely
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/macos-perf-fixes: 5/7] macos: mark region as unlikely
- Date: Mon, 8 Feb 2021 19:22:18 +0000 (UTC)
commit 443d19986858fe307b921e7c6c47dbc0dbea272d
Author: Christian Hergert <chergert redhat com>
Date: Mon Feb 8 09:51:58 2021 -0800
macos: mark region as unlikely
gdk/macos/gdkmacosglcontext.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacosglcontext.c b/gdk/macos/gdkmacosglcontext.c
index 2cd68e31d4..8dd6bc2e00 100644
--- a/gdk/macos/gdkmacosglcontext.c
+++ b/gdk/macos/gdkmacosglcontext.c
@@ -136,7 +136,7 @@ ensure_gl_view (GdkMacosGLContext *self)
nsview = _gdk_macos_surface_get_view (surface);
nswindow = _gdk_macos_surface_get_native (surface);
- if (!GDK_IS_MACOS_GL_VIEW (nsview))
+ if G_UNLIKELY (!GDK_IS_MACOS_GL_VIEW (nsview))
{
NSRect frame;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]