OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The Android Open Source Project | 2 * Copyright 2012 The Android Open Source Project |
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 "SkMatrixConvolutionImageFilter.h" | 8 #include "SkMatrixConvolutionImageFilter.h" |
9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 } | 342 } |
343 SkASSERT(fKernelSize.width() * fKernelSize.height() <= MAX_KERNEL_SIZE); | 343 SkASSERT(fKernelSize.width() * fKernelSize.height() <= MAX_KERNEL_SIZE); |
344 *effect = GrMatrixConvolutionEffect::Create(texture, | 344 *effect = GrMatrixConvolutionEffect::Create(texture, |
345 bounds, | 345 bounds, |
346 fKernelSize, | 346 fKernelSize, |
347 fKernel, | 347 fKernel, |
348 fGain, | 348 fGain, |
349 fBias, | 349 fBias, |
350 fKernelOffset, | 350 fKernelOffset, |
351 convert_tilemodes(fTileMode), | 351 convert_tilemodes(fTileMode), |
352 fConvolveAlpha); | 352 fConvolveAlpha, |
| 353 true); |
353 return true; | 354 return true; |
354 } | 355 } |
355 #endif | 356 #endif |
OLD | NEW |