Index: ui/aura/root_window_host.h |
diff --git a/ui/aura/root_window_host.h b/ui/aura/root_window_host.h |
index 1b6e483e7988b9578a415ec2b90c20af4497cb34..0766a6a3b48be8a5c151703fc23a05a6f86d853c 100644 |
--- a/ui/aura/root_window_host.h |
+++ b/ui/aura/root_window_host.h |
@@ -12,6 +12,8 @@ |
#include "ui/base/cursor/cursor.h" |
#include "ui/gfx/native_widget_types.h" |
+class SkCanvas; |
+ |
namespace gfx { |
class Point; |
class Rect; |
@@ -87,6 +89,13 @@ class AURA_EXPORT RootWindowHost { |
// Sets if the window should be focused when shown. |
virtual void SetFocusWhenShown(bool focus_when_shown) = 0; |
+ // Copies |source_bounds| from the root window (as displayed on the host |
+ // machine) to |canvas| at offset |dest_offset|. The bounds need to be in |
+ // physical pixels. |
+ virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, |
+ const gfx::Point& dest_offset, |
+ SkCanvas* canvas) = 0; |
+ |
// Grabs the snapshot of the root window by using the platform-dependent APIs. |
// The bounds need to be in physical pixels. |
virtual bool GrabSnapshot( |