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

Unified Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 2102203003: Color: Plumb color profile from ui::Compositor to cc::DirectRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ozone build Created 4 years, 6 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/compositor/gpu_process_transport_factory.cc
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
index 805a2204090d4633185df25a17eea387d9ec1577..2fbc06d1b82285b1b7b41f04e916865fa9382efa 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -647,6 +647,18 @@ void GpuProcessTransportFactory::ResizeDisplay(ui::Compositor* compositor,
data->display->Resize(size);
}
+void GpuProcessTransportFactory::SetDisplayColorProfile(
+ ui::Compositor* compositor,
+ const gfx::ColorProfile& color_profile) {
+ PerCompositorDataMap::iterator it = per_compositor_data_.find(compositor);
+ if (it == per_compositor_data_.end())
+ return;
+ PerCompositorData* data = it->second;
+ DCHECK(data);
+ if (data->display)
+ data->display->SetColorProfile(color_profile);
+}
+
void GpuProcessTransportFactory::SetAuthoritativeVSyncInterval(
ui::Compositor* compositor,
base::TimeDelta interval) {

Powered by Google App Engine
This is Rietveld 408576698