Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(653)

Side by Side Diff: services/image_decoder/image_decoder_impl.cc

Issue 2755563002: Move ui/gfx/codec/ into its own component. (Closed)
Patch Set: none Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/gfx/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698