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

Side by Side Diff: ui/ozone/common/display_util.cc

Issue 1182063002: Add support for more advanced color correction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@qcms-fixed-point-gamma
Patch Set: Rebase after quirks changes Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/common/display_util.h" 5 #include "ui/ozone/common/display_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 DisplaySnapshot_Params GetDisplaySnapshotParams( 43 DisplaySnapshot_Params GetDisplaySnapshotParams(
44 const DisplaySnapshot& display) { 44 const DisplaySnapshot& display) {
45 DisplaySnapshot_Params params; 45 DisplaySnapshot_Params params;
46 params.display_id = display.display_id(); 46 params.display_id = display.display_id();
47 params.origin = display.origin(); 47 params.origin = display.origin();
48 params.physical_size = display.physical_size(); 48 params.physical_size = display.physical_size();
49 params.type = display.type(); 49 params.type = display.type();
50 params.is_aspect_preserving_scaling = display.is_aspect_preserving_scaling(); 50 params.is_aspect_preserving_scaling = display.is_aspect_preserving_scaling();
51 params.has_overscan = display.has_overscan(); 51 params.has_overscan = display.has_overscan();
52 params.has_color_correction_matrix = display.has_color_correction_matrix();
52 params.display_name = display.display_name(); 53 params.display_name = display.display_name();
53 params.sys_path = display.sys_path(); 54 params.sys_path = display.sys_path();
54 for (size_t i = 0; i < display.modes().size(); ++i) 55 for (size_t i = 0; i < display.modes().size(); ++i)
55 params.modes.push_back(GetDisplayModeParams(*display.modes()[i])); 56 params.modes.push_back(GetDisplayModeParams(*display.modes()[i]));
56 57
57 params.edid = display.edid(); 58 params.edid = display.edid();
58 59
59 params.has_current_mode = display.current_mode() != NULL; 60 params.has_current_mode = display.current_mode() != NULL;
60 if (params.has_current_mode) 61 if (params.has_current_mode)
61 params.current_mode = GetDisplayModeParams(*display.current_mode()); 62 params.current_mode = GetDisplayModeParams(*display.current_mode());
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 snapshot_out->physical_size = gfx::Size(physical_width, physical_height); 99 snapshot_out->physical_size = gfx::Size(physical_width, physical_height);
99 snapshot_out->has_current_mode = true; 100 snapshot_out->has_current_mode = true;
100 snapshot_out->current_mode = mode_param; 101 snapshot_out->current_mode = mode_param;
101 snapshot_out->has_native_mode = true; 102 snapshot_out->has_native_mode = true;
102 snapshot_out->native_mode = mode_param; 103 snapshot_out->native_mode = mode_param;
103 snapshot_out->product_id = kDummyProductId; 104 snapshot_out->product_id = kDummyProductId;
104 return true; 105 return true;
105 } 106 }
106 107
107 } // namespace ui 108 } // namespace ui
OLDNEW
« 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