OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkBitmapProcBicubic.h" | 8 #include "SkBitmapProcState.h" |
9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
10 #include "SkColor.h" | 10 #include "SkColor.h" |
11 #include "SkColorPriv.h" | 11 #include "SkColorPriv.h" |
12 #include "SkUnPreMultiply.h" | 12 #include "SkUnPreMultiply.h" |
13 #include "SkRTConf.h" | 13 #include "SkRTConf.h" |
14 #include "SkShader.h" | 14 #include "SkShader.h" |
15 | 15 |
16 #define DS(x) SkDoubleToScalar(x) | 16 #define DS(x) SkDoubleToScalar(x) |
17 | 17 |
18 inline SkPMColor cubicBlend(const SkScalar c[16], SkScalar t, SkPMColor c0, SkPM
Color c1, SkPMColor c2, SkPMColor c3) { | 18 inline SkPMColor cubicBlend(const SkScalar c[16], SkScalar t, SkPMColor c0, SkPM
Color c1, SkPMColor c2, SkPMColor c3) { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 return NULL; | 106 return NULL; |
107 } | 107 } |
108 | 108 |
109 // TODO: support blending inside our procs | 109 // TODO: support blending inside our procs |
110 if (0xFF != paint.getAlpha()) { | 110 if (0xFF != paint.getAlpha()) { |
111 return NULL; | 111 return NULL; |
112 } | 112 } |
113 | 113 |
114 return bicubicFilter; | 114 return bicubicFilter; |
115 } | 115 } |
OLD | NEW |