[PATCH weston v2] gl-renderer: If an XRGB format is requested but unavailable, try ARGB
Bill Spitzak
spitzak at gmail.com
Mon May 11 11:12:35 PDT 2015
On 05/11/2015 06:57 AM, Pekka Paalanen wrote:
> How about calling it get_fallback_format_for()?
I think "get_" implies that the result depends on something other than
the arguments. For instance the sin of an angle is a function called
sin(x), not get_sin(x). While looking up an environment variable is
getenv(x), not env(x).
Since the function uses no info other than the arguments, the current
name, or fallback_format_for() are better.
More information about the wayland-devel
mailing list