aw: Add webview feature for wcg raster

Desktop / Chromium - Bo Liu [chromium.org] - 28 February 2019 02:14 EST

- Only enable window wide gamut on Q+
- Add code to allow embedder to enable the window wide color gamut check which affects raster.
- Add code to actually use P3 color space when enabled and acitivty is wide color gamut.
- Add a webview feature to enable the control for webview.

Bug: 924588 Change-Id: I02f18457d6e8240438d9f80cc30b639953b9d23d Reviewed-on: https://chromium-review.googlesource.com/c/1489852

c547dec7a1a2 aw: Add webview feature for wcg raster
android_webview/browser/aw_feature_list.cc | 6 ++++++
android_webview/browser/aw_feature_list.h | 1 +
.../src/org/chromium/android_webview/AwBrowserProcess.java | 5 +++++
.../src/org/chromium/android_webview/AwFeatureList.java | 1 +
ui/android/java/src/org/chromium/ui/base/WindowAndroid.java | 13 ++++++++++++-
ui/android/window_android.cc | 3 +++
6 files changed, 28 insertions(+), 1 deletion(-)

Upstream: git.chromium.org


  • Share