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

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 2691213007: color: Don't use QCMS for transforms unless necessary (Closed)
Patch Set: Incorporate review feedback Created 3 years, 10 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
« no previous file with comments | « no previous file | gpu/ipc/client/gpu_memory_buffer_impl_io_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index 1273c58e7a43ed11b7f5ae2b57fe311678765ade..9d65bb85feba2ef39094aff350913c3c2fdfadad 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -699,10 +699,9 @@ void GetScreenInfoForWindow(ScreenInfo* results,
results->is_monochrome = false;
results->device_scale_factor = display.device_scale_factor();
results->icc_profile = gfx::ICCProfile::FromBestMonitor();
- if (results->icc_profile == gfx::ICCProfile()) {
- results->icc_profile =
- gfx::ICCProfile::FromColorSpace(gfx::ColorSpace::CreateSRGB());
- }
+ if (!results->icc_profile.IsValid())
+ gfx::ColorSpace::CreateSRGB().GetICCProfile(&results->icc_profile);
+ DCHECK(results->icc_profile.IsValid());
// The Display rotation and the ScreenInfo orientation are not the same
// angle. The former is the physical display rotation while the later is the
« no previous file with comments | « no previous file | gpu/ipc/client/gpu_memory_buffer_impl_io_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698