diff options
Diffstat (limited to 'gn/gn_to_bp.py')
-rw-r--r-- | gn/gn_to_bp.py | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/gn/gn_to_bp.py b/gn/gn_to_bp.py index 3a1238bf20..a09e46ca66 100644 --- a/gn/gn_to_bp.py +++ b/gn/gn_to_bp.py @@ -91,7 +91,24 @@ cc_library_static { }, }, - defaults: ["skia_deps"], + defaults: ["skia_deps", + "skia_pgo", + ], +} + +// Build libskia with PGO by default. +// Location of PGO profile data is defined in build/soong/cc/pgo.go +// and is separate from skia. +// To turn it off, set ANDROID_PGO_NO_PROFILE_USE environment variable +// or set enable_profile_use property to false. +cc_defaults { + name: "skia_pgo", + pgo: { + instrumentation: true, + profile_file: "skia/skia.profdata", + benchmarks: ["hwui", "skia"], + enable_profile_use: true, + }, } cc_defaults { |