OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/image_decoder/image_decoder_impl.h" | 5 #include "services/image_decoder/image_decoder_impl.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "content/public/child/image_decoder_utils.h" | 12 #include "content/public/child/image_decoder_utils.h" |
13 #include "mojo/public/cpp/bindings/strong_binding.h" | 13 #include "mojo/public/cpp/bindings/strong_binding.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 | 16 |
17 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
18 #include "ui/gfx/chromeos/codec/jpeg_codec_robust_slow.h" | 18 #include "ui/gfx/codec/chromeos/jpeg_codec_robust_slow.h" |
19 #include "ui/gfx/codec/png_codec.h" | 19 #include "ui/gfx/codec/png_codec.h" |
20 #endif | 20 #endif |
21 | 21 |
22 namespace image_decoder { | 22 namespace image_decoder { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 int64_t kPadding = 64; | 26 int64_t kPadding = 64; |
27 | 27 |
28 } // namespace | 28 } // namespace |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 } else { | 94 } else { |
95 decoded_image.reset(); | 95 decoded_image.reset(); |
96 } | 96 } |
97 } | 97 } |
98 } | 98 } |
99 | 99 |
100 callback.Run(decoded_image); | 100 callback.Run(decoded_image); |
101 } | 101 } |
102 | 102 |
103 } // namespace image_decoder | 103 } // namespace image_decoder |
OLD | NEW |