Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: ui/aura/root_window.h

Issue 11273059: ash: Clean up system background layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apply review feedback Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/remote_root_window_host_win.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.h
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index 2d07627572e4e41ff43dcf66b5b4d865007910d6..1c6ab8f00eb34bb30a7c07ce8bb3ec16edf30eab 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -27,6 +27,8 @@
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/point.h"
+class SkCanvas;
+
namespace gfx {
class Size;
class Transform;
@@ -213,7 +215,14 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
// Sets if the window should be focused when shown.
void SetFocusWhenShown(bool focus_when_shown);
- // Grabs the snapshot of the root window by using the platform-dependent APIs.
+ // Copies |source_bounds| from the root window (as displayed on the host
+ // machine) to |canvas| at offset |dest_offset|.
+ bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds,
+ const gfx::Point& dest_offset,
+ SkCanvas* canvas);
+
+ // Grabs a snapshot of the root window using platform-specific APIs, encodes
+ // it in PNG format, and saves it to |png_representation|.
bool GrabSnapshot(const gfx::Rect& snapshot_bounds,
std::vector<unsigned char>* png_representation);
« no previous file with comments | « ui/aura/remote_root_window_host_win.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698