1. 23 Feb, 2019 35 commits
  2. 22 Feb, 2019 5 commits
    • Marcin Wiącek's avatar
      Migrate Orientation to the @IntDef · 7fb0508e
      Marcin Wiącek authored
      @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
      
      Main goal of patch is writing @Orientation interface in the form common with 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
      
      BUG=919666
      
      Change-Id: I6e96496eedf82253687c287ea7a70b3c92f63ace
      Reviewed-on: https://chromium-review.googlesource.com/c/1480450Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
      Commit-Queue: Marcin Wiącek <marcin@mwiacek.com>
      Cr-Commit-Position: refs/heads/master@{#634876}
      7fb0508e
    • Ahmed Fakhry's avatar
      Add flag to list all modes of external displays · 15d707e7
      Ahmed Fakhry authored
      This CL adds a flag that enables listing all display
      modes in the display settings for external displays,
      which can be very useful for debugging and development
      purposes.
      
      BUG=927848
      TEST=Added tests, tested on device with 4k display
      
      Change-Id: I748f2c2b645071723b94a37f759528b6437558aa
      Reviewed-on: https://chromium-review.googlesource.com/c/1465682
      Commit-Queue: Ahmed Fakhry <afakhry@chromium.org>
      Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
      Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
      Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
      Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
      Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#634875}
      15d707e7
    • Kenneth Russell's avatar
      Revert "Enable -Wextra-semi in non-cros non-chromecast non-fuzzer linux builds... · 00ddedc7
      Kenneth Russell authored
      Revert "Enable -Wextra-semi in non-cros non-chromecast non-fuzzer linux builds that have DCHECKs enabled."
      
      This reverts commit 5b911be8.
      
      Reason for revert: broke linux_optional_gpu_tests_rel trybot per Issue 935033
      
      Original change's description:
      > Enable -Wextra-semi in non-cros non-chromecast non-fuzzer linux builds that have DCHECKs enabled.
      > 
      > Only enables the warning for chromium_code.n
      > 
      > Also fix the last few -Wextra-semi instances in sanitizer and linux/ozone builds.
      > 
      > Getting to this state required fixing > 3000 unique warnings in 15+ different
      > repositories.  If this breaks some internal-only build somewhere, either consider
      > using no_chromium_code for your internal code, or fix the warnings -- it's
      > pretty easy. (Build with treat_warnings_as_errors=false, then open the error log
      > in vim, run `:%g/warning:/t$` to copy the warnings to the end of the buffer,
      > remove all but just those lines, run `:sort u` to get uniques, then save as
      > `tmp.txt` and run `:cf %` and then use something like `:map m :w<cr>:cn<cr>`
      > to go through them quickly.)
      > 
      > TBR=rsesek
      > 
      > Bug: 926235
      > Change-Id: Ica629737523ff6bbd756edc44d182f35ff6cf8ac
      > Reviewed-on: https://chromium-review.googlesource.com/c/1483396
      > Reviewed-by: Scott Violet <sky@chromium.org>
      > Auto-Submit: Nico Weber <thakis@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#634826}
      
      TBR=sky@chromium.org,thakis@chromium.org,rsesek@chromium.org
      
      Change-Id: I3fbcb763dbe448619b55f6dbb0cd1bf6d4eebc03
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Bug: 926235, 935033
      Reviewed-on: https://chromium-review.googlesource.com/c/1484509Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
      Commit-Queue: Kenneth Russell <kbr@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#634874}
      00ddedc7
    • Ryan Sturm's avatar
      Style fix In Previews code · ecdadde5
      Ryan Sturm authored
      Change-Id: I433b70e353291c952c315e0ab2805298e27840dd
      Reviewed-on: https://chromium-review.googlesource.com/c/1483945Reviewed-by: default avatarRobert Ogden <robertogden@chromium.org>
      Commit-Queue: Ryan Sturm <ryansturm@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#634873}
      ecdadde5
    • Mike Wittman's avatar
      [Sampling profiler] Make ModuleCache::Module a reference type · 4ad741e8
      Mike Wittman authored
      This is a reland of 8f219b08 and
      9de3faa3 merged into a single change,
      with test fixes.
      
      * Changes ModuleCache::Module from a value type to a reference type,
        with ModuleCache maintaining ownership of the Module. ModuleCache
        needs to own its Modules to properly support Windows, which reference
        counts its modules. ModuleCache is retained as a struct to minimize
        the size of this change, but will be changed to a class in a later CL.
      
      * Moves the parallel module caching implementation for Windows into
        ModuleCache. This is required to ensure the referenced modules outlive
        the references to them.  The parallel implementation will be merged
        with the existing module caching implementation over the course of
        later refactoring CLs.
      
      Bug: 931418
      Change-Id: Ic58afbf4f7bd48a91d0191a37b623b63501c8fa7
      Reviewed-on: https://chromium-review.googlesource.com/c/1483393Reviewed-by: default avataroysteine <oysteine@chromium.org>
      Reviewed-by: default avatarScott Violet <sky@chromium.org>
      Commit-Queue: Scott Violet <sky@chromium.org>
      Auto-Submit: Mike Wittman <wittman@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#634872}
      4ad741e8