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" |
11 #include "SkReadBuffer.h" | 11 #include "SkReadBuffer.h" |
12 #include "SkWriteBuffer.h" | 12 #include "SkWriteBuffer.h" |
13 #include "SkRect.h" | 13 #include "SkRect.h" |
14 #include "SkUnPreMultiply.h" | 14 #include "SkUnPreMultiply.h" |
15 | 15 |
16 #if SK_SUPPORT_GPU | 16 #if SK_SUPPORT_GPU |
17 #include "gl/GrGLEffect.h" | 17 #include "gl/GrGLEffect.h" |
| 18 #include "gl/GrGLShaderBuilder.h" |
18 #include "effects/GrSingleTextureEffect.h" | 19 #include "effects/GrSingleTextureEffect.h" |
19 #include "GrTBackendEffectFactory.h" | 20 #include "GrTBackendEffectFactory.h" |
20 #include "GrTexture.h" | 21 #include "GrTexture.h" |
21 #include "SkMatrix.h" | 22 #include "SkMatrix.h" |
22 #endif | 23 #endif |
23 | 24 |
24 static bool tile_mode_is_valid(SkMatrixConvolutionImageFilter::TileMode tileMode
) { | 25 static bool tile_mode_is_valid(SkMatrixConvolutionImageFilter::TileMode tileMode
) { |
25 switch (tileMode) { | 26 switch (tileMode) { |
26 case SkMatrixConvolutionImageFilter::kClamp_TileMode: | 27 case SkMatrixConvolutionImageFilter::kClamp_TileMode: |
27 case SkMatrixConvolutionImageFilter::kRepeat_TileMode: | 28 case SkMatrixConvolutionImageFilter::kRepeat_TileMode: |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 fBias, | 677 fBias, |
677 fKernelOffset, | 678 fKernelOffset, |
678 fTileMode, | 679 fTileMode, |
679 fConvolveAlpha); | 680 fConvolveAlpha); |
680 return true; | 681 return true; |
681 } | 682 } |
682 | 683 |
683 /////////////////////////////////////////////////////////////////////////////// | 684 /////////////////////////////////////////////////////////////////////////////// |
684 | 685 |
685 #endif | 686 #endif |
OLD | NEW |