mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
meta-actor-window: Use G_UNLIKELY for TFP check
This is just a microptimization, as we pretty much always use TFP (and do the check every time we set a pixmap), we can let gcc generate better code here. https://bugzilla.gnome.org/show_bug.cgi?id=633002
This commit is contained in:
parent
bac668d287
commit
64c37852b1
@ -1821,8 +1821,8 @@ check_needs_pixmap (MetaWindowActor *self)
|
||||
* do it here.
|
||||
* See: http://bugzilla.clutter-project.org/show_bug.cgi?id=2236
|
||||
*/
|
||||
if (!clutter_glx_texture_pixmap_using_extension (
|
||||
CLUTTER_GLX_TEXTURE_PIXMAP (priv->actor)))
|
||||
if (G_UNLIKELY (!clutter_glx_texture_pixmap_using_extension (
|
||||
CLUTTER_GLX_TEXTURE_PIXMAP (priv->actor))))
|
||||
g_warning ("NOTE: Not using GLX TFP!\n");
|
||||
|
||||
g_object_get (priv->actor,
|
||||
|
Loading…
Reference in New Issue
Block a user