| 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;
|
| - 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() {
|
|
|