| Index: ui/snapshot/snapshot_android.cc
|
| diff --git a/ui/snapshot/snapshot_android.cc b/ui/snapshot/snapshot_android.cc
|
| index 557a325db03b1682b79613561520a3070ea4bfb0..1ae62e96ddc3a1d103a423c8fb719267c1cc0886 100644
|
| --- a/ui/snapshot/snapshot_android.cc
|
| +++ b/ui/snapshot/snapshot_android.cc
|
| @@ -22,14 +22,13 @@
|
| namespace ui {
|
|
|
| bool GrabViewSnapshot(gfx::NativeView view,
|
| - std::vector<unsigned char>* png_representation,
|
| + gfx::Image* image,
|
| const gfx::Rect& snapshot_bounds) {
|
| - return GrabWindowSnapshot(
|
| - view->GetWindowAndroid(), png_representation, snapshot_bounds);
|
| + return GrabWindowSnapshot(view->GetWindowAndroid(), image, snapshot_bounds);
|
| }
|
|
|
| bool GrabWindowSnapshot(gfx::NativeWindow window,
|
| - std::vector<unsigned char>* png_representation,
|
| + gfx::Image* image,
|
| const gfx::Rect& snapshot_bounds) {
|
| // Not supported in Android. Callers should fall back to the async version.
|
| return false;
|
| @@ -75,25 +74,18 @@ void GrabWindowSnapshotAndScaleAsync(
|
| background_task_runner));
|
| }
|
|
|
| -void GrabWindowSnapshotAsync(
|
| - gfx::NativeWindow window,
|
| - const gfx::Rect& source_rect,
|
| - scoped_refptr<base::TaskRunner> background_task_runner,
|
| - const GrabWindowSnapshotAsyncPNGCallback& callback) {
|
| - MakeAsyncCopyRequest(window,
|
| - source_rect,
|
| - base::Bind(&SnapshotAsync::EncodeCopyOutputResult,
|
| - callback,
|
| - background_task_runner));
|
| +void GrabWindowSnapshotAsync(gfx::NativeWindow window,
|
| + const gfx::Rect& source_rect,
|
| + const GrabWindowSnapshotAsyncCallback& callback) {
|
| + MakeAsyncCopyRequest(
|
| + window, source_rect,
|
| + base::Bind(&SnapshotAsync::RunCallbackWithCopyOutputResult, callback));
|
| }
|
|
|
| -void GrabViewSnapshotAsync(
|
| - gfx::NativeView view,
|
| - const gfx::Rect& source_rect,
|
| - scoped_refptr<base::TaskRunner> background_task_runner,
|
| - const GrabWindowSnapshotAsyncPNGCallback& callback) {
|
| - GrabWindowSnapshotAsync(
|
| - view->GetWindowAndroid(), source_rect, background_task_runner, callback);
|
| +void GrabViewSnapshotAsync(gfx::NativeView view,
|
| + const gfx::Rect& source_rect,
|
| + const GrabWindowSnapshotAsyncCallback& callback) {
|
| + GrabWindowSnapshotAsync(view->GetWindowAndroid(), source_rect, callback);
|
| }
|
|
|
| } // namespace ui
|
|
|