| Index: services/ui/ws/display.cc
|
| diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
|
| index f375d07c3bba7ecb12b50070168378bfe04cdcc7..1f267e2b78471f09d6aee80b07569d82a44ecd4a 100644
|
| --- a/services/ui/ws/display.cc
|
| +++ b/services/ui/ws/display.cc
|
| @@ -33,8 +33,7 @@ namespace ws {
|
|
|
| Display::Display(WindowServer* window_server,
|
| const PlatformDisplayInitParams& platform_display_init_params)
|
| - : id_(window_server->display_manager()->GetAndAdvanceNextDisplayId()),
|
| - window_server_(window_server),
|
| + : window_server_(window_server),
|
| platform_display_(PlatformDisplay::Create(platform_display_init_params)),
|
| last_cursor_(ui::kCursorNone) {
|
| platform_display_->Init(this);
|
| @@ -94,7 +93,7 @@ mojom::WsDisplayPtr Display::ToWsDisplay() const {
|
| }
|
|
|
| ::display::Display Display::ToDisplay() const {
|
| - ::display::Display display(id_);
|
| + ::display::Display display(id());
|
|
|
| // TODO(sky): Display should know its origin.
|
| display.set_bounds(gfx::Rect(0, 0, root_->bounds().size().width(),
|
| @@ -134,10 +133,6 @@ gfx::Size Display::GetSize() const {
|
| return root_->bounds().size();
|
| }
|
|
|
| -int64_t Display::GetPlatformDisplayId() const {
|
| - return platform_display_->GetDisplayId();
|
| -}
|
| -
|
| ServerWindow* Display::GetRootWithId(const WindowId& id) {
|
| if (id == root_->id())
|
| return root_.get();
|
|
|