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 "SkDither.h" | 8 #include "SkDither.h" |
9 #include "SkPerlinNoiseShader.h" | 9 #include "SkPerlinNoiseShader.h" |
10 #include "SkColorFilter.h" | 10 #include "SkColorFilter.h" |
11 #include "SkReadBuffer.h" | 11 #include "SkReadBuffer.h" |
12 #include "SkWriteBuffer.h" | 12 #include "SkWriteBuffer.h" |
13 #include "SkShader.h" | 13 #include "SkShader.h" |
14 #include "SkUnPreMultiply.h" | 14 #include "SkUnPreMultiply.h" |
15 #include "SkString.h" | 15 #include "SkString.h" |
16 | 16 |
17 #if SK_SUPPORT_GPU | 17 #if SK_SUPPORT_GPU |
18 #include "GrContext.h" | 18 #include "GrContext.h" |
19 #include "GrCoordTransform.h" | 19 #include "GrCoordTransform.h" |
20 #include "gl/GrGLEffect.h" | 20 #include "gl/GrGLEffect.h" |
| 21 #include "gl/GrGLShaderBuilder.h" |
21 #include "GrTBackendEffectFactory.h" | 22 #include "GrTBackendEffectFactory.h" |
22 #include "SkGr.h" | 23 #include "SkGr.h" |
23 #endif | 24 #endif |
24 | 25 |
25 static const int kBlockSize = 256; | 26 static const int kBlockSize = 256; |
26 static const int kBlockMask = kBlockSize - 1; | 27 static const int kBlockMask = kBlockSize - 1; |
27 static const int kPerlinNoise = 4096; | 28 static const int kPerlinNoise = 4096; |
28 static const int kRandMaximum = SK_MaxS32; // 2**31 - 1 | 29 static const int kRandMaximum = SK_MaxS32; // 2**31 - 1 |
29 | 30 |
30 namespace { | 31 namespace { |
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 str->append(" seed: "); | 1043 str->append(" seed: "); |
1043 str->appendScalar(fSeed); | 1044 str->appendScalar(fSeed); |
1044 str->append(" stitch tiles: "); | 1045 str->append(" stitch tiles: "); |
1045 str->append(fStitchTiles ? "true " : "false "); | 1046 str->append(fStitchTiles ? "true " : "false "); |
1046 | 1047 |
1047 this->INHERITED::toString(str); | 1048 this->INHERITED::toString(str); |
1048 | 1049 |
1049 str->append(")"); | 1050 str->append(")"); |
1050 } | 1051 } |
1051 #endif | 1052 #endif |
OLD | NEW |