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

Side by Side Diff: content/public/common/screen_info.cc

Issue 2954793002: color: Replace more instances of ICCProfile with ColorSpace (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « content/public/common/screen_info.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/public/common/screen_info.h" 5 #include "content/public/common/screen_info.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 ScreenInfo::ScreenInfo() = default; 9 ScreenInfo::ScreenInfo() = default;
10 ScreenInfo::ScreenInfo(const ScreenInfo& other) = default; 10 ScreenInfo::ScreenInfo(const ScreenInfo& other) = default;
11 ScreenInfo::~ScreenInfo() = default; 11 ScreenInfo::~ScreenInfo() = default;
12 12
13 bool ScreenInfo::operator==(const ScreenInfo& other) const { 13 bool ScreenInfo::operator==(const ScreenInfo& other) const {
14 return device_scale_factor == other.device_scale_factor && 14 return device_scale_factor == other.device_scale_factor &&
15 icc_profile == other.icc_profile && 15 color_space == other.color_space && depth == other.depth &&
16 depth == other.depth &&
17 depth_per_component == other.depth_per_component && 16 depth_per_component == other.depth_per_component &&
18 is_monochrome == other.is_monochrome && 17 is_monochrome == other.is_monochrome && rect == other.rect &&
19 rect == other.rect &&
20 available_rect == other.available_rect && 18 available_rect == other.available_rect &&
21 orientation_type == other.orientation_type && 19 orientation_type == other.orientation_type &&
22 orientation_angle == other.orientation_angle; 20 orientation_angle == other.orientation_angle;
23 } 21 }
24 22
25 bool ScreenInfo::operator!=(const ScreenInfo& other) const { 23 bool ScreenInfo::operator!=(const ScreenInfo& other) const {
26 return !(*this == other); 24 return !(*this == other);
27 } 25 }
28 26
29 27
30 } // namespace content 28 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/screen_info.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698