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

Unified Diff: ui/ozone/common/display_util.cc

Issue 1129863003: Load ICC file for display color correction based on display product identifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nuked extra {} Created 5 years, 7 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 | « ui/ozone/common/display_snapshot_proxy.cc ('k') | ui/ozone/common/gpu/ozone_gpu_message_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/common/display_util.cc
diff --git a/ui/ozone/common/display_util.cc b/ui/ozone/common/display_util.cc
index 5e853bcef0cad8b169d2dfbbe5f7189b8618b267..ffa4670c5bc26d25d3a1701fb0981f68d94e9606 100644
--- a/ui/ozone/common/display_util.cc
+++ b/ui/ozone/common/display_util.cc
@@ -18,6 +18,7 @@ namespace ui {
namespace {
const int64_t kDummyDisplayId = 1;
+const int64_t kDummyProductId = 1;
} // namespace
@@ -58,6 +59,7 @@ DisplaySnapshot_Params GetDisplaySnapshotParams(
if (params.has_native_mode)
params.native_mode = GetDisplayModeParams(*display.native_mode());
+ params.product_id = display.product_id();
params.string_representation = display.ToString();
return params;
@@ -93,6 +95,7 @@ bool CreateSnapshotFromCommandLine(DisplaySnapshot_Params* snapshot_out) {
snapshot_out->current_mode = mode_param;
snapshot_out->has_native_mode = true;
snapshot_out->native_mode = mode_param;
+ snapshot_out->product_id = kDummyProductId;
return true;
}
« no previous file with comments | « ui/ozone/common/display_snapshot_proxy.cc ('k') | ui/ozone/common/gpu/ozone_gpu_message_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698