Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(885)

Side by Side Diff: src/effects/SkPerlinNoiseShader.cpp

Issue 1246193002: Moved GrGLFragmentProcessor definition to its own file (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/effects/SkMorphologyImageFilter.cpp ('k') | src/effects/SkTableColorFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/effects/SkMorphologyImageFilter.cpp ('k') | src/effects/SkTableColorFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698