gpu/command_buffer/build_cmd_buffer_lib.py
def EnumsConflict(a, b):
  """Returns true if the enums have different names (ignoring suffixes) and one
  of them is a Chromium enum."""
  if a == b:
    return False

  if b.endswith('_CHROMIUM'):
    a, b = b, a

  if not a.endswith('_CHROMIUM'):
    return False

  def removesuffix(string, suffix):
    if not string.endswith(suffix):
      return string
    return string[:-len(suffix)]
  b = removesuffix(b, "_NV")
  b = removesuffix(b, "_EXT")
  b = removesuffix(b, "_OES")
  return removesuffix(a, "_CHROMIUM") != b
Returns true if the enums have different names (ignoring suffixes) and one
  of them is a Chromium enum.
Returns true if the enums have different names (ignoring suffixes) and one
of them is a Chromium enum.
Returns true if the enums have different names ( ignoring suffixes ) and one of them is a Chromium enum .
def EnumsConflict(a, b):
  if a == b:
    return False
  if b.endswith('_CHROMIUM'):
    a, b = b, a
  if not a.endswith('_CHROMIUM'):
    return False
  def removesuffix(string, suffix):
    if not string.endswith(suffix):
      return string
    return string[:-len(suffix)]
  b = removesuffix(b, "_NV")
  b = removesuffix(b, "_EXT")
  b = removesuffix(b, "_OES")
  return removesuffix(a, "_CHROMIUM") != b
def EnumsConflict ( a , b ) : if a == b : return False if b . endswith ( '_CHROMIUM' ) : a , b = b , a if not a . endswith ( '_CHROMIUM' ) : return False def removesuffix ( string , suffix ) : if not string . endswith ( suffix ) : return string return string [ : - len ( suffix ) ] b = removesuffix ( b , "_NV" ) b = removesuffix ( b , "_EXT" ) b = removesuffix ( b , "_OES" ) return removesuffix ( a , "_CHROMIUM" ) != b
Returns true if the enums have different names (ignoring suffixes) and one
of them is a Chromium enum.
Returns true if the enums have different names ( ignoring suffixes ) and one of them is a Chromium enum .
"""Returns true if the enums have different names (ignoring suffixes) and one
  of them is a Chromium enum."""
a
b