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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 StitchData& stitchData, const SkPoint& point) const; | 89 StitchData& stitchData, const SkPoint& point) const; |
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 asFragmentProcessor(GrContext* context, const SkPaint&, const S
kMatrix*, GrColor*, |
100 GrEffect**) const SK_OVERRIDE; | 100 GrFragmentProcessor**) 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 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING | 106 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
107 SkPerlinNoiseShader(SkReadBuffer&); | 107 SkPerlinNoiseShader(SkReadBuffer&); |
108 #endif | 108 #endif |
109 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 109 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
110 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; | 110 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; |
(...skipping 12 matching lines...) Expand all Loading... |
123 /*const*/ SkScalar fBaseFrequencyY; | 123 /*const*/ SkScalar fBaseFrequencyY; |
124 /*const*/ int fNumOctaves; | 124 /*const*/ int fNumOctaves; |
125 /*const*/ SkScalar fSeed; | 125 /*const*/ SkScalar fSeed; |
126 /*const*/ SkISize fTileSize; | 126 /*const*/ SkISize fTileSize; |
127 /*const*/ bool fStitchTiles; | 127 /*const*/ bool fStitchTiles; |
128 | 128 |
129 typedef SkShader INHERITED; | 129 typedef SkShader INHERITED; |
130 }; | 130 }; |
131 | 131 |
132 #endif | 132 #endif |
OLD | NEW |