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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 int numOctaves, SkScalar seed, | 62 int numOctaves, SkScalar seed, |
63 const SkISize* tileSize = NULL); | 63 const SkISize* tileSize = NULL); |
64 | 64 |
65 virtual bool setContext(const SkBitmap& device, const SkPaint& paint, | 65 virtual bool setContext(const SkBitmap& device, const SkPaint& paint, |
66 const SkMatrix& matrix); | 66 const SkMatrix& matrix); |
67 virtual void shadeSpan(int x, int y, SkPMColor[], int count) SK_OVERRIDE; | 67 virtual void shadeSpan(int x, int y, SkPMColor[], int count) SK_OVERRIDE; |
68 virtual void shadeSpan16(int x, int y, uint16_t[], int count) SK_OVERRIDE; | 68 virtual void shadeSpan16(int x, int y, uint16_t[], int count) SK_OVERRIDE; |
69 | 69 |
70 virtual GrEffectRef* asNewEffect(GrContext* context, const SkPaint&) const S
K_OVERRIDE; | 70 virtual GrEffectRef* asNewEffect(GrContext* context, const SkPaint&) const S
K_OVERRIDE; |
71 | 71 |
72 SK_DEVELOPER_TO_STRING() | 72 SK_TO_STRING_OVERRIDE() |
73 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPerlinNoiseShader) | 73 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPerlinNoiseShader) |
74 | 74 |
75 protected: | 75 protected: |
76 SkPerlinNoiseShader(SkReadBuffer&); | 76 SkPerlinNoiseShader(SkReadBuffer&); |
77 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 77 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
78 | 78 |
79 private: | 79 private: |
80 SkPerlinNoiseShader(SkPerlinNoiseShader::Type type, SkScalar baseFrequencyX, | 80 SkPerlinNoiseShader(SkPerlinNoiseShader::Type type, SkScalar baseFrequencyX, |
81 SkScalar baseFrequencyY, int numOctaves, SkScalar seed, | 81 SkScalar baseFrequencyY, int numOctaves, SkScalar seed, |
82 const SkISize* tileSize); | 82 const SkISize* tileSize); |
(...skipping 19 matching lines...) Expand all Loading... |
102 /*const*/ bool fStitchTiles; | 102 /*const*/ bool fStitchTiles; |
103 // TODO (scroggo): Once setContext creates a new object, place this on that
object. | 103 // TODO (scroggo): Once setContext creates a new object, place this on that
object. |
104 SkMatrix fMatrix; | 104 SkMatrix fMatrix; |
105 | 105 |
106 PaintingData* fPaintingData; | 106 PaintingData* fPaintingData; |
107 | 107 |
108 typedef SkShader INHERITED; | 108 typedef SkShader INHERITED; |
109 }; | 109 }; |
110 | 110 |
111 #endif | 111 #endif |
OLD | NEW |