Chromium Code Reviews| Index: ash/wm/window_mirror_view.cc |
| diff --git a/ash/wm/window_mirror_view.cc b/ash/wm/window_mirror_view.cc |
| index 3e702277e9e7c17bc6bfa3143c48cfba0360f41f..b62a366566f3758fdcf288e772e83c2a2f1bcee2 100644 |
| --- a/ash/wm/window_mirror_view.cc |
| +++ b/ash/wm/window_mirror_view.cc |
| @@ -51,17 +51,7 @@ void WindowMirrorView::Init() { |
| } |
| gfx::Size WindowMirrorView::GetPreferredSize() const { |
| - const int kMaxWidth = 512; |
|
Evan Stade
2016/07/20 17:01:09
Seems like this logic belongs in the window cycle
sky
2016/07/20 19:48:45
Agreed.
|
| - const int kMaxHeight = 256; |
| - |
| - gfx::Size target_size = target_->GetBounds().size(); |
| - if (target_size.width() <= kMaxWidth && target_size.height() <= kMaxHeight) { |
| - return target_size; |
| - } |
| - |
| - float scale = std::min(kMaxWidth / static_cast<float>(target_size.width()), |
| - kMaxHeight / static_cast<float>(target_size.height())); |
| - return gfx::ScaleToCeiledSize(target_size, scale, scale); |
| + return target_->GetBounds().size(); |
| } |
| void WindowMirrorView::Layout() { |