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

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: update window id 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
Index: ui/aura/root_window.h
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index 7631d96ba4cc11444ce46c69b91b3114ebd3e6b6..4edfbe4b3180c9c207eb166a03c5f3a66fc79247 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;
@@ -241,7 +243,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);

Powered by Google App Engine
This is Rietveld 408576698