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 #define _USE_MATH_DEFINES | 5 #define _USE_MATH_DEFINES |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <cmath> | 11 #include <cmath> |
12 #include <limits> | 12 #include <limits> |
13 | 13 |
14 #include "skia/ext/image_operations.h" | 14 #include "skia/ext/image_operations.h" |
15 | 15 |
16 // TODO(pkasting): skia/ext should not depend on base/! | 16 // TODO(pkasting): skia/ext should not depend on base/! |
17 #include "base/containers/stack_container.h" | 17 #include "base/containers/stack_container.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram_macros.h" |
21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
22 #include "base/trace_event/trace_event.h" | 22 #include "base/trace_event/trace_event.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "skia/ext/convolver.h" | 24 #include "skia/ext/convolver.h" |
25 #include "third_party/skia/include/core/SkColorPriv.h" | 25 #include "third_party/skia/include/core/SkColorPriv.h" |
26 #include "third_party/skia/include/core/SkRect.h" | 26 #include "third_party/skia/include/core/SkRect.h" |
27 | 27 |
28 namespace skia { | 28 namespace skia { |
29 | 29 |
30 namespace { | 30 namespace { |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 SkBitmap ImageOperations::Resize(const SkBitmap& source, | 396 SkBitmap ImageOperations::Resize(const SkBitmap& source, |
397 ResizeMethod method, | 397 ResizeMethod method, |
398 int dest_width, int dest_height, | 398 int dest_width, int dest_height, |
399 SkBitmap::Allocator* allocator) { | 399 SkBitmap::Allocator* allocator) { |
400 SkIRect dest_subset = { 0, 0, dest_width, dest_height }; | 400 SkIRect dest_subset = { 0, 0, dest_width, dest_height }; |
401 return Resize(source, method, dest_width, dest_height, dest_subset, | 401 return Resize(source, method, dest_width, dest_height, dest_subset, |
402 allocator); | 402 allocator); |
403 } | 403 } |
404 | 404 |
405 } // namespace skia | 405 } // namespace skia |
OLD | NEW |