| Index: chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
|
| diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc b/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
|
| index aa84adc698b716236469d14e8e29ac6970afd21e..fcc5f5801ce4122480582e7ec9ff2aa7144152a5 100644
|
| --- a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
|
| +++ b/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
|
| @@ -8,6 +8,7 @@
|
| #include "third_party/skia/include/core/SkBitmap.h"
|
| #include "ui/aura/window.h"
|
| #include "ui/compositor/compositor.h"
|
| +#include "ui/compositor/dip_util.h"
|
| #include "ui/compositor/layer.h"
|
| #include "ui/gfx/codec/png_codec.h"
|
| #include "ui/gfx/rect.h"
|
| @@ -25,6 +26,8 @@ bool GrabWindowSnapshot(gfx::NativeWindow window,
|
| // the desktop.
|
| read_pixels_bounds.set_origin(
|
| snapshot_bounds.origin().Add(window->bounds().origin()));
|
| + read_pixels_bounds =
|
| + ui::ConvertRectToPixel(window->layer(), read_pixels_bounds);
|
|
|
| DCHECK_GE(compositor->size().width(), read_pixels_bounds.right());
|
| DCHECK_GE(compositor->size().height(), read_pixels_bounds.bottom());
|
|
|