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

Unified Diff: content/public/common/screen_info.h

Issue 2325773003: cc: Plumb the monitor color profile to renderer for rasterization (Closed)
Patch Set: Make public_deps instead of deps 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/screen_info.h
diff --git a/content/public/common/screen_info.h b/content/public/common/screen_info.h
index ea3a57f673b9f9d393e1f804d6aa3ba55e91dbda..eff088ece5ccd253f7e65c02460178f78f7e5ca4 100644
--- a/content/public/common/screen_info.h
+++ b/content/public/common/screen_info.h
@@ -5,14 +5,20 @@
#ifndef CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_
#define CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_
+#include "content/common/content_export.h"
#include "content/public/common/screen_orientation_values.h"
#include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/icc_profile.h"
namespace content {
// Information about the screen on which a RenderWidget is being displayed. This
// is the content counterpart to WebScreenInfo in blink.
-struct ScreenInfo {
+struct CONTENT_EXPORT ScreenInfo {
+ ScreenInfo();
+ ScreenInfo(const ScreenInfo& other);
+ ~ScreenInfo();
+
// Device scale factor. Specifies the ratio between physical and logical
// pixels.
float device_scale_factor = 1.f;
@@ -27,6 +33,9 @@ struct ScreenInfo {
// This can be true for black and white printers
bool is_monochrome = false;
+ // The ICC profile of the output display.
+ gfx::ICCProfile icc_profile;
+
// The display monitor rectangle in virtual-screen coordinates. Note that
// this may be negative.
gfx::Rect rect;

Powered by Google App Engine
This is Rietveld 408576698