| 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 "GrInvariantOutput.h" |    20 #include "GrInvariantOutput.h" | 
|    21 #include "SkGr.h" |    21 #include "SkGr.h" | 
|    22 #include "gl/GrGLProcessor.h" |    22 #include "gl/GrGLFragmentProcessor.h" | 
|    23 #include "gl/builders/GrGLProgramBuilder.h" |    23 #include "gl/builders/GrGLProgramBuilder.h" | 
|    24 #endif |    24 #endif | 
|    25  |    25  | 
|    26 static const int kBlockSize = 256; |    26 static const int kBlockSize = 256; | 
|    27 static const int kBlockMask = kBlockSize - 1; |    27 static const int kBlockMask = kBlockSize - 1; | 
|    28 static const int kPerlinNoise = 4096; |    28 static const int kPerlinNoise = 4096; | 
|    29 static const int kRandMaximum = SK_MaxS32; // 2**31 - 1 |    29 static const int kRandMaximum = SK_MaxS32; // 2**31 - 1 | 
|    30  |    30  | 
|    31 namespace { |    31 namespace { | 
|    32  |    32  | 
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1035     str->append(" seed: "); |  1035     str->append(" seed: "); | 
|  1036     str->appendScalar(fSeed); |  1036     str->appendScalar(fSeed); | 
|  1037     str->append(" stitch tiles: "); |  1037     str->append(" stitch tiles: "); | 
|  1038     str->append(fStitchTiles ? "true " : "false "); |  1038     str->append(fStitchTiles ? "true " : "false "); | 
|  1039  |  1039  | 
|  1040     this->INHERITED::toString(str); |  1040     this->INHERITED::toString(str); | 
|  1041  |  1041  | 
|  1042     str->append(")"); |  1042     str->append(")"); | 
|  1043 } |  1043 } | 
|  1044 #endif |  1044 #endif | 
| OLD | NEW |