resource_exclusions.gni 1.1 KB

123456789101112131415161718192021222324252627
  1. # Copyright 2020 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. # Strip xxxhdpi images to save size. It's extremely difficult to see the
  5. # difference without magnification. https://crbug.com/691733.
  6. common_resource_exclusion_regex = "drawable[^/]*-xxxhdpi"
  7. common_resource_exclusion_exceptions = [
  8. "*shadow*", # Combination of gradient & transparency cause pixelation.
  9. "*.9.*", # Most nine-patches contain shadows.
  10. "*ic_group_*", # Appear only in xxxhdpi.
  11. ]
  12. # Remove WearOS resources (a couple exist in appcompat).
  13. common_resource_exclusion_regex += "|-watch\b"
  14. # As of May 2020, 0.2% of devices are ldpi:
  15. # https://developer.android.com/about/dashboards/index.html
  16. # Only a single resources is defined in this config:
  17. # ic_arrow_down_24dp
  18. # It saves XXkb to omit the config.
  19. common_resource_exclusion_regex += "|-ldpi\b"
  20. # Mediarouter has excessive .png files for animations. Remove some of them.
  21. # https://crbug.com/1147188
  22. common_resource_exclusion_regex += "|mediarouter.*?drawable-x?hdpi"