diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-29 21:51:57 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-29 21:51:57 +0000 |
commit | d2d18a1aac19bea3324a160c07c6f850ad764c03 (patch) | |
tree | fe164815aca553375ca6f7573eed73edcc80fd3f /ash/display/display_manager.h | |
parent | 5046460c941b82cfd5cad8d627d3737574c076dd (diff) | |
download | chromium_src-d2d18a1aac19bea3324a160c07c6f850ad764c03.zip chromium_src-d2d18a1aac19bea3324a160c07c6f850ad764c03.tar.gz chromium_src-d2d18a1aac19bea3324a160c07c6f850ad764c03.tar.bz2 |
Use the source display's pixel (host) size as a mirror window's size
so that we can copy texture as is.
- store gfx::Display object for mirrored display instead of
just id because we need one for mirror root window.
- use host window's coordinate for mirror cursor window.
BUG=239776
TEST=covered by unit tests
Review URL: https://chromiumcodereview.appspot.com/15730006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202985 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/display/display_manager.h')
-rw-r--r-- | ash/display/display_manager.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ash/display/display_manager.h b/ash/display/display_manager.h index c7b47a8..5591b5c 100644 --- a/ash/display/display_manager.h +++ b/ash/display/display_manager.h @@ -143,7 +143,7 @@ class ASH_EXPORT DisplayManager : // Returns the mirroring status. bool IsMirrored() const; - int64 mirrored_display_id() const { return mirrored_display_.id(); } + const gfx::Display& mirrored_display() const { return mirrored_display_; } // Returns the display object nearest given |window|. const gfx::Display& GetDisplayNearestPoint( @@ -210,6 +210,10 @@ class ASH_EXPORT DisplayManager : gfx::Display& FindDisplayForRootWindow(const aura::RootWindow* root); gfx::Display& FindDisplayForId(int64 id); + // Add the mirror display's display info if the software based + // mirroring is in use. + void AddMirrorDisplayInfoIfAny(std::vector<DisplayInfo>* display_info_list); + // Refer to |CreateDisplayFromSpec| API for the format of |spec|. void AddDisplayFromSpec(const std::string& spec); |