Index: ui/snapshot/snapshot.h |
diff --git a/ui/snapshot/snapshot.h b/ui/snapshot/snapshot.h |
index e547e4748ddaf77b8a4e150f420556bbe3726e0c..4b2733c1536b846fa85d51cd25dc3a6b2ce703a7 100644 |
--- a/ui/snapshot/snapshot.h |
+++ b/ui/snapshot/snapshot.h |
@@ -41,10 +41,12 @@ SNAPSHOT_EXPORT bool GrabViewSnapshot( |
std::vector<unsigned char>* png_representation, |
const gfx::Rect& snapshot_bounds); |
+ |
+// These functions take a snapshot of |source_rect|, specified in layer space |
+// coordinates (DIP for desktop, physical pixels for Android), and scale the |
+// snapshot to |target_size| (in physical pixels), asynchronously. |
typedef base::Callback<void(const gfx::Image& snapshot)> |
GrabWindowSnapshotAsyncCallback; |
-// GrabWindowSnapshotAndScaleAsync() copies snapshot of |source_rect| from |
-// window and scales it to |target_size| asynchronously. |
SNAPSHOT_EXPORT void GrabWindowSnapshotAndScaleAsync( |
gfx::NativeWindow window, |
const gfx::Rect& source_rect, |