| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/snapshot/snapshot.h" | 5 #include "ui/snapshot/snapshot.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/safe_numerics.h" | 10 #include "base/numerics/safe_conversions.h" |
| 11 #include "base/task_runner_util.h" | 11 #include "base/task_runner_util.h" |
| 12 #include "cc/output/copy_output_request.h" | 12 #include "cc/output/copy_output_request.h" |
| 13 #include "cc/output/copy_output_result.h" | 13 #include "cc/output/copy_output_result.h" |
| 14 #include "skia/ext/image_operations.h" | 14 #include "skia/ext/image_operations.h" |
| 15 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
| 16 #include "third_party/skia/include/core/SkPixelRef.h" | 16 #include "third_party/skia/include/core/SkPixelRef.h" |
| 17 #include "ui/aura/root_window.h" | 17 #include "ui/aura/root_window.h" |
| 18 #include "ui/aura/window.h" | 18 #include "ui/aura/window.h" |
| 19 #include "ui/compositor/compositor.h" | 19 #include "ui/compositor/compositor.h" |
| 20 #include "ui/compositor/dip_util.h" | 20 #include "ui/compositor/dip_util.h" |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 void GrabViewSnapshotAsync( | 246 void GrabViewSnapshotAsync( |
| 247 gfx::NativeView view, | 247 gfx::NativeView view, |
| 248 const gfx::Rect& source_rect, | 248 const gfx::Rect& source_rect, |
| 249 scoped_refptr<base::TaskRunner> background_task_runner, | 249 scoped_refptr<base::TaskRunner> background_task_runner, |
| 250 const GrabWindowSnapshotAsyncPNGCallback& callback) { | 250 const GrabWindowSnapshotAsyncPNGCallback& callback) { |
| 251 GrabWindowSnapshotAsync(view, source_rect, background_task_runner, callback); | 251 GrabWindowSnapshotAsync(view, source_rect, background_task_runner, callback); |
| 252 } | 252 } |
| 253 | 253 |
| 254 | 254 |
| 255 } // namespace ui | 255 } // namespace ui |
| OLD | NEW |