| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/chromeos/login/users/avatar/user_image_loader.h" | 5 #include "chrome/browser/chromeos/login/users/avatar/user_image_loader.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/sequenced_task_runner.h" | 15 #include "base/sequenced_task_runner.h" |
| 16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
| 17 #include "base/task_runner_util.h" | 17 #include "base/task_runner_util.h" |
| 18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
| 19 #include "chrome/browser/chromeos/login/helper.h" | 19 #include "chrome/browser/chromeos/login/helper.h" |
| 20 #include "components/user_manager/user_image/user_image.h" | 20 #include "components/user_manager/user_image/user_image.h" |
| 21 #include "skia/ext/image_operations.h" | 21 #include "skia/ext/image_operations.h" |
| 22 #include "third_party/skia/include/core/SkBitmap.h" | 22 #include "third_party/skia/include/core/SkBitmap.h" |
| 23 #include "ui/gfx/codec/png_codec.h" | 23 #include "ui/gfx/codec/png_codec.h" |
| 24 #include "ui/gfx/skbitmap_operations.h" | 24 #include "ui/gfx/skbitmap_operations.h" |
| 25 | 25 |
| 26 namespace chromeos { | 26 namespace chromeos { |
| 27 namespace user_image_loader { | 27 namespace user_image_loader { |
| 28 namespace { | 28 namespace { |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 ImageDecoder::ImageCodec image_codec, | 220 ImageDecoder::ImageCodec image_codec, |
| 221 int pixels_per_side, | 221 int pixels_per_side, |
| 222 const LoadedCallback& loaded_cb) { | 222 const LoadedCallback& loaded_cb) { |
| 223 DecodeImage( | 223 DecodeImage( |
| 224 ImageInfo(base::FilePath(), pixels_per_side, image_codec, loaded_cb), | 224 ImageInfo(base::FilePath(), pixels_per_side, image_codec, loaded_cb), |
| 225 background_task_runner, data.get(), true /* data_is_ready */); | 225 background_task_runner, data.get(), true /* data_is_ready */); |
| 226 } | 226 } |
| 227 | 227 |
| 228 } // namespace user_image_loader | 228 } // namespace user_image_loader |
| 229 } // namespace chromeos | 229 } // namespace chromeos |
| OLD | NEW |