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

Unified Diff: ui/gfx/display.h

Issue 922843002: Fix software mirror mode on Ozone part 2/2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/events/devices/x11/device_data_manager_x11.cc ('k') | ui/gfx/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/display.h
diff --git a/ui/gfx/display.h b/ui/gfx/display.h
index 9054d7c7efef1d024f0dae00ce086591ee3684ad..90b659198fc96e99805eff0f8cee77ed8870b625 100644
--- a/ui/gfx/display.h
+++ b/ui/gfx/display.h
@@ -110,6 +110,13 @@ class GFX_EXPORT Display {
// True if the display contains valid display id.
bool is_valid() const { return id_ != kInvalidDisplayID; }
+ // Sets the display which is mirrored on this display.
+ void set_mirrored_display_id(int64 id) { mirrored_display_id_ = id; }
+
+ // Returns the display which is mirrored on this display and kInvalidDisplayID
+ // otherwise.
+ int64 mirrored_display_id() const { return mirrored_display_id_; }
oshima 2015/03/04 00:54:36 This is low level information that none of chrome
+
// True if the display corresponds to internal panel.
bool IsInternal() const;
@@ -126,6 +133,7 @@ class GFX_EXPORT Display {
float device_scale_factor_;
Rotation rotation_;
TouchSupport touch_support_;
+ int64 mirrored_display_id_;
};
} // namespace gfx
« no previous file with comments | « ui/events/devices/x11/device_data_manager_x11.cc ('k') | ui/gfx/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698