| Index: ui/aura/root_window.cc
|
| diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
|
| index 563456686a80bf85127a0cfe5252030c6b4951dd..0c0b79db0ce36541efa23e8d8bec724ab08bec0e 100644
|
| --- a/ui/aura/root_window.cc
|
| +++ b/ui/aura/root_window.cc
|
| @@ -403,8 +403,18 @@ void RootWindow::SetFocusWhenShown(bool focused) {
|
| host_->SetFocusWhenShown(focused);
|
| }
|
|
|
| +bool RootWindow::CopyAreaToSkCanvas(const gfx::Rect& source_bounds,
|
| + const gfx::Point& dest_offset,
|
| + SkCanvas* canvas) {
|
| + DCHECK(canvas);
|
| + DCHECK(bounds().Contains(source_bounds));
|
| + gfx::Rect source_pixels = ui::ConvertRectToPixel(layer(), source_bounds);
|
| + return host_->CopyAreaToSkCanvas(source_pixels, dest_offset, canvas);
|
| +}
|
| +
|
| bool RootWindow::GrabSnapshot(const gfx::Rect& snapshot_bounds,
|
| std::vector<unsigned char>* png_representation) {
|
| + DCHECK(png_representation);
|
| DCHECK(bounds().Contains(snapshot_bounds));
|
| gfx::Rect snapshot_pixels = ui::ConvertRectToPixel(layer(), snapshot_bounds);
|
| return host_->GrabSnapshot(snapshot_pixels, png_representation);
|
|
|