| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include <cmath> | 6 #include <cmath> |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "skia/ext/image_operations.h" | 10 #include "skia/ext/image_operations.h" |
| 11 | 11 |
| 12 #include "base/gfx/rect.h" | 12 #include "base/gfx/rect.h" |
| 13 #include "base/gfx/size.h" | 13 #include "base/gfx/size.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/stack_container.h" | 15 #include "base/stack_container.h" |
| 16 #include "SkBitmap.h" | 16 #include "SkBitmap.h" |
| 17 #include "SkColorPriv.h" |
| 17 #include "skia/ext/convolver.h" | 18 #include "skia/ext/convolver.h" |
| 18 #include "skia/include/SkColorPriv.h" | |
| 19 | 19 |
| 20 namespace skia { | 20 namespace skia { |
| 21 | 21 |
| 22 // TODO(brettw) remove this and put this file in the skia namespace. | 22 // TODO(brettw) remove this and put this file in the skia namespace. |
| 23 using namespace gfx; | 23 using namespace gfx; |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 // Returns the ceiling/floor as an integer. | 27 // Returns the ceiling/floor as an integer. |
| 28 inline int CeilInt(float val) { | 28 inline int CeilInt(float val) { |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 | 558 |
| 559 dst_row[x] = source_row[x_pix]; | 559 dst_row[x] = source_row[x_pix]; |
| 560 } | 560 } |
| 561 } | 561 } |
| 562 | 562 |
| 563 return cropped; | 563 return cropped; |
| 564 } | 564 } |
| 565 | 565 |
| 566 } // namespace skia | 566 } // namespace skia |
| 567 | 567 |
| OLD | NEW |