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 SkPerlinNoiseShader_DEFINED | 8 #ifndef SkPerlinNoiseShader_DEFINED |
9 #define SkPerlinNoiseShader_DEFINED | 9 #define SkPerlinNoiseShader_DEFINED |
10 | 10 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 SkScalar noise2D(int channel, | 90 SkScalar noise2D(int channel, |
91 const StitchData& stitchData, const SkPoint& noiseVecto
r) const; | 91 const StitchData& stitchData, const SkPoint& noiseVecto
r) const; |
92 | 92 |
93 SkMatrix fMatrix; | 93 SkMatrix fMatrix; |
94 PaintingData* fPaintingData; | 94 PaintingData* fPaintingData; |
95 | 95 |
96 typedef SkShader::Context INHERITED; | 96 typedef SkShader::Context INHERITED; |
97 }; | 97 }; |
98 | 98 |
99 virtual bool asNewEffect(GrContext* context, const SkPaint&, const SkMatrix*
, GrColor*, | 99 virtual bool asNewEffect(GrContext* context, const SkPaint&, const SkMatrix*
, GrColor*, |
100 GrEffect**) const SK_OVERRIDE; | 100 GrEffectRef**) const SK_OVERRIDE; |
101 | 101 |
102 SK_TO_STRING_OVERRIDE() | 102 SK_TO_STRING_OVERRIDE() |
103 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPerlinNoiseShader) | 103 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPerlinNoiseShader) |
104 | 104 |
105 protected: | 105 protected: |
106 SkPerlinNoiseShader(SkReadBuffer&); | 106 SkPerlinNoiseShader(SkReadBuffer&); |
107 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 107 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
108 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; | 108 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; |
109 | 109 |
110 private: | 110 private: |
(...skipping 10 matching lines...) Expand all Loading... |
121 /*const*/ SkScalar fBaseFrequencyY; | 121 /*const*/ SkScalar fBaseFrequencyY; |
122 /*const*/ int fNumOctaves; | 122 /*const*/ int fNumOctaves; |
123 /*const*/ SkScalar fSeed; | 123 /*const*/ SkScalar fSeed; |
124 /*const*/ SkISize fTileSize; | 124 /*const*/ SkISize fTileSize; |
125 /*const*/ bool fStitchTiles; | 125 /*const*/ bool fStitchTiles; |
126 | 126 |
127 typedef SkShader INHERITED; | 127 typedef SkShader INHERITED; |
128 }; | 128 }; |
129 | 129 |
130 #endif | 130 #endif |
OLD | NEW |