| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 int channel, const PaintingData& paintingData, | 88 int channel, const PaintingData& paintingData, |
| 89 StitchData& stitchData, const SkPoint& point) const; | 89 StitchData& stitchData, const SkPoint& point) const; |
| 90 SkScalar noise2D(int channel, const PaintingData& paintingData, | 90 SkScalar noise2D(int channel, const PaintingData& paintingData, |
| 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 | 94 |
| 95 typedef SkShader::Context INHERITED; | 95 typedef SkShader::Context INHERITED; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 virtual GrEffectRef* asNewEffect(GrContext* context, const SkPaint&) const S
K_OVERRIDE; | 98 virtual GrEffectRef* asNewEffect(GrContext* context, const SkPaint&, |
| 99 const SkMatrix*) const SK_OVERRIDE; |
| 99 | 100 |
| 100 SK_TO_STRING_OVERRIDE() | 101 SK_TO_STRING_OVERRIDE() |
| 101 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPerlinNoiseShader) | 102 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPerlinNoiseShader) |
| 102 | 103 |
| 103 protected: | 104 protected: |
| 104 SkPerlinNoiseShader(SkReadBuffer&); | 105 SkPerlinNoiseShader(SkReadBuffer&); |
| 105 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 106 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 106 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; | 107 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; |
| 107 | 108 |
| 108 private: | 109 private: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 121 /*const*/ SkScalar fSeed; | 122 /*const*/ SkScalar fSeed; |
| 122 /*const*/ SkISize fTileSize; | 123 /*const*/ SkISize fTileSize; |
| 123 /*const*/ bool fStitchTiles; | 124 /*const*/ bool fStitchTiles; |
| 124 | 125 |
| 125 PaintingData* fPaintingData; | 126 PaintingData* fPaintingData; |
| 126 | 127 |
| 127 typedef SkShader INHERITED; | 128 typedef SkShader INHERITED; |
| 128 }; | 129 }; |
| 129 | 130 |
| 130 #endif | 131 #endif |
| OLD | NEW |