Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1319)

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 2522693002: Color correct ImageBitmap(HTMLImageElement*) constructor (Closed)
Patch Set: Addressing crash on memory sanitizer trybot Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 0e80165d72ae40dd26db592606a2288f3ba6bbb1..f5be8d59d28b97e081294c902be760872526373b 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -505,6 +505,10 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() {
command_line.HasSwitch(cc::switches::kEnableColorCorrectRendering) ||
command_line.HasSwitch(cc::switches::kEnableTrueColorRendering);
+ prefs.color_correct_rendering_default_mode_enabled =
+ command_line.HasSwitch(
+ switches::kEnableColorCorrectRenderingDefaultMode);
+
prefs.true_color_rendering_enabled =
command_line.HasSwitch(cc::switches::kEnableTrueColorRendering);
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698