OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 class SkBitmap; | 9 class SkBitmap; |
10 struct SkIRect; | 10 struct SkIRect; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Supports all methods except RESIZE_SUBPIXEL. | 114 // Supports all methods except RESIZE_SUBPIXEL. |
115 static SkBitmap ResizeBasic(const SkBitmap& source, | 115 static SkBitmap ResizeBasic(const SkBitmap& source, |
116 ResizeMethod method, | 116 ResizeMethod method, |
117 int dest_width, int dest_height, | 117 int dest_width, int dest_height, |
118 const SkIRect& dest_subset); | 118 const SkIRect& dest_subset); |
119 | 119 |
120 // Subpixel renderer. | 120 // Subpixel renderer. |
121 static SkBitmap ResizeSubpixel(const SkBitmap& source, | 121 static SkBitmap ResizeSubpixel(const SkBitmap& source, |
122 int dest_width, int dest_height, | 122 int dest_width, int dest_height, |
123 const SkIRect& dest_subset); | 123 const SkIRect& dest_subset); |
| 124 |
| 125 static bool hasSSE2(); |
124 }; | 126 }; |
125 | 127 |
126 } // namespace skia | 128 } // namespace skia |
127 | 129 |
128 #endif // SKIA_EXT_IMAGE_OPERATIONS_H_ | 130 #endif // SKIA_EXT_IMAGE_OPERATIONS_H_ |
OLD | NEW |