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 #ifndef SkPerlinNoiseShader2_DEFINED | 8 #ifndef SkPerlinNoiseShader2_DEFINED |
9 #define SkPerlinNoiseShader2_DEFINED | 9 #define SkPerlinNoiseShader2_DEFINED |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 SkScalar noise2D(int channel, | 99 SkScalar noise2D(int channel, |
100 const StitchData& stitchData, const SkPoint& noiseVecto
r) const; | 100 const StitchData& stitchData, const SkPoint& noiseVecto
r) const; |
101 | 101 |
102 SkMatrix fMatrix; | 102 SkMatrix fMatrix; |
103 PaintingData* fPaintingData; | 103 PaintingData* fPaintingData; |
104 | 104 |
105 typedef SkShader::Context INHERITED; | 105 typedef SkShader::Context INHERITED; |
106 }; | 106 }; |
107 | 107 |
108 #if SK_SUPPORT_GPU | 108 #if SK_SUPPORT_GPU |
109 const GrFragmentProcessor* asFragmentProcessor(GrContext* context, const SkM
atrix& viewM, | 109 sk_sp<GrFragmentProcessor> asFragmentProcessor(GrContext* context, const SkM
atrix& viewM, |
110 const SkMatrix*, SkFilterQual
ity, | 110 const SkMatrix*, SkFilterQual
ity, |
111 SkSourceGammaTreatment) const
override; | 111 SkSourceGammaTreatment) const
override; |
112 #endif | 112 #endif |
113 | 113 |
114 SK_TO_STRING_OVERRIDE() | 114 SK_TO_STRING_OVERRIDE() |
115 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPerlinNoiseShader2) | 115 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPerlinNoiseShader2) |
116 | 116 |
117 protected: | 117 protected: |
118 void flatten(SkWriteBuffer&) const override; | 118 void flatten(SkWriteBuffer&) const override; |
119 size_t onContextSize(const ContextRec&) const override; | 119 size_t onContextSize(const ContextRec&) const override; |
(...skipping 10 matching lines...) Expand all Loading... |
130 const SkScalar fBaseFrequencyY; | 130 const SkScalar fBaseFrequencyY; |
131 const int fNumOctaves; | 131 const int fNumOctaves; |
132 const SkScalar fSeed; | 132 const SkScalar fSeed; |
133 const SkISize fTileSize; | 133 const SkISize fTileSize; |
134 const bool fStitchTiles; | 134 const bool fStitchTiles; |
135 | 135 |
136 typedef SkShader INHERITED; | 136 typedef SkShader INHERITED; |
137 }; | 137 }; |
138 | 138 |
139 #endif | 139 #endif |
OLD | NEW |