| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/mus/ws/display_manager.h" | 5 #include "components/mus/ws/display_manager.h" |
| 6 | 6 |
| 7 #include "base/numerics/safe_conversions.h" | 7 #include "base/numerics/safe_conversions.h" |
| 8 #include "cc/output/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" |
| 9 #include "cc/output/delegated_frame_data.h" | 9 #include "cc/output/delegated_frame_data.h" |
| 10 #include "cc/quads/render_pass.h" | 10 #include "cc/quads/render_pass.h" |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 float device_pixel_ratio) { | 344 float device_pixel_ratio) { |
| 345 if (widget != gfx::kNullAcceleratedWidget) { | 345 if (widget != gfx::kNullAcceleratedWidget) { |
| 346 top_level_display_client_.reset( | 346 top_level_display_client_.reset( |
| 347 new TopLevelDisplayClient(widget, gpu_state_, surfaces_state_)); | 347 new TopLevelDisplayClient(widget, gpu_state_, surfaces_state_)); |
| 348 delegate_->OnTopLevelSurfaceChanged( | 348 delegate_->OnTopLevelSurfaceChanged( |
| 349 top_level_display_client_->surface_id()); | 349 top_level_display_client_->surface_id()); |
| 350 } | 350 } |
| 351 UpdateMetrics(metrics_.size_in_pixels.To<gfx::Size>(), device_pixel_ratio); | 351 UpdateMetrics(metrics_.size_in_pixels.To<gfx::Size>(), device_pixel_ratio); |
| 352 } | 352 } |
| 353 | 353 |
| 354 void DefaultDisplayManager::OnAcceleratedWidgetDestroyed() { |
| 355 NOTREACHED(); |
| 356 } |
| 357 |
| 354 void DefaultDisplayManager::OnActivationChanged(bool active) {} | 358 void DefaultDisplayManager::OnActivationChanged(bool active) {} |
| 355 | 359 |
| 356 } // namespace mus | 360 } // namespace mus |
| OLD | NEW |