| 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 #ifndef SKIA_EXT_IMAGE_OPERATIONS_H_ | 5 #ifndef SKIA_EXT_IMAGE_OPERATIONS_H_ |
| 6 #define SKIA_EXT_IMAGE_OPERATIONS_H_ | 6 #define SKIA_EXT_IMAGE_OPERATIONS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/gfx/rect.h" | 9 #include "base/gfx/rect.h" |
| 10 #include "skia/ext/skia_utils.h" | 10 #include "skia/ext/skia_utils.h" |
| 11 #include "SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
| 12 | 12 |
| 13 class SkBitmap; | 13 class SkBitmap; |
| 14 | 14 |
| 15 namespace skia { | 15 namespace skia { |
| 16 | 16 |
| 17 class ImageOperations { | 17 class ImageOperations { |
| 18 public: | 18 public: |
| 19 enum ResizeMethod { | 19 enum ResizeMethod { |
| 20 // Box filter. This is a weighted average of all of the pixels touching | 20 // Box filter. This is a weighted average of all of the pixels touching |
| 21 // the destination pixel. For enlargement, this is nearest neighbor. | 21 // the destination pixel. For enlargement, this is nearest neighbor. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 int src_x, int src_y, | 90 int src_x, int src_y, |
| 91 int dst_w, int dst_h); | 91 int dst_w, int dst_h); |
| 92 private: | 92 private: |
| 93 ImageOperations(); // Class for scoping only. | 93 ImageOperations(); // Class for scoping only. |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace skia | 96 } // namespace skia |
| 97 | 97 |
| 98 #endif // SKIA_EXT_IMAGE_OPERATIONS_H_ | 98 #endif // SKIA_EXT_IMAGE_OPERATIONS_H_ |
| 99 | 99 |
| OLD | NEW |