Commit c9184c8b authored by Bo Liu's avatar Bo Liu Committed by Commit Bot

weblayer: Hook up wide color gamut

Enable wide color gamut in same condition as chrome, except use
kUseWindow instead of kUseDisplay.

Change-Id: I199bb3545143ad169b13f47ed5986c6d0865728f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2143861
Commit-Queue: Bo <boliu@chromium.org>
Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758344}
parent 77c4a104
......@@ -594,4 +594,13 @@ void ContentBrowserClientImpl::AppendExtraCommandLineSwitches(
}
}
#if defined(OS_ANDROID)
content::ContentBrowserClient::WideColorGamutHeuristic
ContentBrowserClientImpl::GetWideColorGamutHeuristic() {
// Always match window since a mismatch can cause inefficiency in surface
// flinger.
return WideColorGamutHeuristic::kUseWindow;
}
#endif // OS_ANDROID
} // namespace weblayer
......@@ -97,6 +97,9 @@ class ContentBrowserClientImpl : public content::ContentBrowserClient {
#endif // defined(OS_LINUX) || defined(OS_ANDROID)
void AppendExtraCommandLineSwitches(base::CommandLine* command_line,
int child_process_id) override;
#if defined(OS_ANDROID)
WideColorGamutHeuristic GetWideColorGamutHeuristic() override;
#endif // OS_ANDROID
void CreateFeatureListAndFieldTrials();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment