Replace enum HWEncoderProperties with @IntDef
@IntDef/@StringDef annotation are preferred way for declaring set of String/int values 1. they need less space in APK than enum, see https://developer.android.com/topic/performance/reduce-apk-size#remove-enums 2. they give more control over allowed values than "static final" values Patch is updating HWEncoderProperties to @IntDef with form common with other Chrome @IntDef: 1. with @IntDef first, @Retention second and related @interface third 2. with values inside @interface 3. with @Retention(RetentionPolicy.SOURCE) 4. without "static final" in the @interface 5. with NUM_ENTRIES BUG=919666 Change-Id: I3dac5daa74145708436f63c6a8af0f50136addc3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1545928 Commit-Queue: Marcin Wiącek <marcin@mwiacek.com> Reviewed-by:John Rummell <jrummell@chromium.org> Cr-Commit-Position: refs/heads/master@{#646607}
Showing
Please register or sign in to comment