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

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

Issue 2336113003: Revert of cc: Plumb the monitor color profile to renderer for rasterization (Closed)
Patch Set: Created 4 years, 3 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/common/view_messages.h ('k') | content/public/common/screen_info.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 #ifndef CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_
6 #define CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_ 6 #define CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_
7 7
8 #include "content/common/content_export.h"
9 #include "content/public/common/screen_orientation_values.h" 8 #include "content/public/common/screen_orientation_values.h"
10 #include "ui/gfx/geometry/rect.h" 9 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/icc_profile.h"
12 10
13 namespace content { 11 namespace content {
14 12
15 // Information about the screen on which a RenderWidget is being displayed. This 13 // Information about the screen on which a RenderWidget is being displayed. This
16 // is the content counterpart to WebScreenInfo in blink. 14 // is the content counterpart to WebScreenInfo in blink.
17 struct CONTENT_EXPORT ScreenInfo { 15 struct ScreenInfo {
18 ScreenInfo();
19 ScreenInfo(const ScreenInfo& other);
20 ~ScreenInfo();
21
22 // Device scale factor. Specifies the ratio between physical and logical 16 // Device scale factor. Specifies the ratio between physical and logical
23 // pixels. 17 // pixels.
24 float device_scale_factor = 1.f; 18 float device_scale_factor = 1.f;
25 19
26 // The ICC profile of the output display.
27 gfx::ICCProfile icc_profile;
28
29 // The screen depth in bits per pixel 20 // The screen depth in bits per pixel
30 uint32_t depth = 0; 21 uint32_t depth = 0;
31 22
32 // The bits per colour component. This assumes that the colours are balanced 23 // The bits per colour component. This assumes that the colours are balanced
33 // equally. 24 // equally.
34 uint32_t depth_per_component = 0; 25 uint32_t depth_per_component = 0;
35 26
36 // This can be true for black and white printers 27 // This can be true for black and white printers
37 bool is_monochrome = false; 28 bool is_monochrome = false;
38 29
(...skipping 12 matching lines...) Expand all
51 // It is the opposite of the physical rotation. 42 // It is the opposite of the physical rotation.
52 uint16_t orientation_angle = 0; 43 uint16_t orientation_angle = 0;
53 44
54 bool operator==(const ScreenInfo& other) const; 45 bool operator==(const ScreenInfo& other) const;
55 bool operator!=(const ScreenInfo& other) const; 46 bool operator!=(const ScreenInfo& other) const;
56 }; 47 };
57 48
58 } // namespace content 49 } // namespace content
59 50
60 #endif // CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_ 51 #endif // CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/screen_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698