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.
|
* do it here.
|
||||||
* See: http://bugzilla.clutter-project.org/show_bug.cgi?id=2236
|
* See: http://bugzilla.clutter-project.org/show_bug.cgi?id=2236
|
||||||
*/
|
*/
|
||||||
if (!clutter_glx_texture_pixmap_using_extension (
|
if (G_UNLIKELY (!clutter_glx_texture_pixmap_using_extension (
|
||||||
CLUTTER_GLX_TEXTURE_PIXMAP (priv->actor)))
|
CLUTTER_GLX_TEXTURE_PIXMAP (priv->actor))))
|
||||||
g_warning ("NOTE: Not using GLX TFP!\n");
|
g_warning ("NOTE: Not using GLX TFP!\n");
|
||||||
|
|
||||||
g_object_get (priv->actor,
|
g_object_get (priv->actor,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user