summaryrefslogtreecommitdiff
path: root/chromium/ui/aura/root_window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/aura/root_window.cc')
-rw-r--r--chromium/ui/aura/root_window.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/ui/aura/root_window.cc b/chromium/ui/aura/root_window.cc
index a638dc1bbe6..43366f001aa 100644
--- a/chromium/ui/aura/root_window.cc
+++ b/chromium/ui/aura/root_window.cc
@@ -499,6 +499,15 @@ 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);
+}
+
gfx::Point RootWindow::GetLastMouseLocationInRoot() const {
gfx::Point location = Env::GetInstance()->last_mouse_location();
client::ScreenPositionClient* client = client::GetScreenPositionClient(this);