content/test/gpu/gpu_tests/skia_gold_integration_test_base.py
def _StripAngleRevisionFromDriver(img_params):
  """Strips the revision off the end of an ANGLE driver version.

  E.g. 2.1.0.b50541b2d6c4 -> 2.1.0

  Modifies the string in place. No-ops if the driver vendor is not ANGLE.

  Args:
    img_params: An _ImageParameters instance to modify.
  """
  if 'ANGLE' not in img_params.driver_vendor or not img_params.driver_version:
    return
  # Assume that we're never going to have portions of the driver we care about
  # that are longer than 8 characters.
  driver_parts = img_params.driver_version.split('.')
  kept_parts = []
  for part in driver_parts:
    if len(part) > 8:
      break
    kept_parts.append(part)
  img_params.driver_version = '.'.join(kept_parts)
Strips the revision off the end of an ANGLE driver version.

  E.g. 2.1.0.b50541b2d6c4 -> 2.1.0

  Modifies the string in place. No-ops if the driver vendor is not ANGLE.

  Args:
    img_params: An _ImageParameters instance to modify.
  
Strips the revision off the end of an ANGLE driver version.

Modifies the string in place. No-ops if the driver vendor is not ANGLE.
Strips the revision off the end of an ANGLE driver version . Modifies the string in place . No - ops if the driver vendor is not ANGLE .
def _StripAngleRevisionFromDriver(img_params):
  if 'ANGLE' not in img_params.driver_vendor or not img_params.driver_version:
    return
  driver_parts = img_params.driver_version.split('.')
  kept_parts = []
  for part in driver_parts:
    if len(part) > 8:
      break
    kept_parts.append(part)
  img_params.driver_version = '.'.join(kept_parts)
def _StripAngleRevisionFromDriver ( img_params ) : if 'ANGLE' not in img_params . driver_vendor or not img_params . driver_version : return driver_parts = img_params . driver_version . split ( '.' ) kept_parts = [ ] for part in driver_parts : if len ( part ) > 8 : break kept_parts . append ( part ) img_params . driver_version = '.' . join ( kept_parts )
Strips the revision off the end of an ANGLE driver version.
Strips the revision off the end of an ANGLE driver version .
"""Strips the revision off the end of an ANGLE driver version.

  E.g. 2.1.0.b50541b2d6c4 -> 2.1.0

  Modifies the string in place. No-ops if the driver vendor is not ANGLE.

  Args:
    img_params: An _ImageParameters instance to modify.
  """ # Assume that we're never going to have portions of the driver we care about # that are longer than 8 characters.
img_params
An _ImageParameters instance to modify.
An _ImageParameters instance to modify .