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

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

Issue 1796293003: Image decode color: Push color profile from browser to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows tests Created 4 years, 9 months 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 173b4eda6757090736e4a38d275f82744a84106a..463e68d14e7c48351a43a8e7242ebca796722fd2 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -84,6 +84,7 @@
#include "ui/base/touch/touch_enabled.h"
#include "ui/base/ui_base_switches.h"
#include "ui/gfx/animation/animation.h"
+#include "ui/gfx/color_profile.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/native_theme/native_theme_switches.h"
@@ -338,6 +339,7 @@ bool RenderViewHostImpl::CreateRenderView(
params.enable_auto_resize = GetWidget()->auto_resize_enabled();
params.min_size = GetWidget()->min_size_for_auto_resize();
params.max_size = GetWidget()->max_size_for_auto_resize();
+ params.image_decode_color_profile = gfx::ColorProfile().profile();
ccameron 2016/03/15 06:02:24 Note that this default constructor actually comput
GetWidget()->GetResizeParams(&params.initial_size);
if (!Send(new ViewMsg_New(params)))

Powered by Google App Engine
This is Rietveld 408576698