Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: include/effects/SkPerlinNoiseShader.h

Issue 372053003: Revert of Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*. (Closed) Base URL: https://skia.googlesource.com/skia.git@no_ref
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/effects/SkMatrixConvolutionImageFilter.h ('k') | include/gpu/GrBackendEffectFactory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/effects/SkMatrixConvolutionImageFilter.h ('k') | include/gpu/GrBackendEffectFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698