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

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

Issue 2041113004: sk_sp for gpu. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Reserve correctly. Created 4 years, 6 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/SkLumaColorFilter.h ('k') | include/gpu/GrClip.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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 SkScalar noise2D(int channel, 95 SkScalar noise2D(int channel,
96 const StitchData& stitchData, const SkPoint& noiseVecto r) const; 96 const StitchData& stitchData, const SkPoint& noiseVecto r) const;
97 97
98 SkMatrix fMatrix; 98 SkMatrix fMatrix;
99 PaintingData* fPaintingData; 99 PaintingData* fPaintingData;
100 100
101 typedef SkShader::Context INHERITED; 101 typedef SkShader::Context INHERITED;
102 }; 102 };
103 103
104 #if SK_SUPPORT_GPU 104 #if SK_SUPPORT_GPU
105 const GrFragmentProcessor* asFragmentProcessor(GrContext* context, const SkM atrix& viewM, 105 sk_sp<GrFragmentProcessor> asFragmentProcessor(GrContext* context, const SkM atrix& viewM,
106 const SkMatrix*, SkFilterQual ity, 106 const SkMatrix*, SkFilterQual ity,
107 SkSourceGammaTreatment) const override; 107 SkSourceGammaTreatment) const override;
108 #endif 108 #endif
109 109
110 SK_TO_STRING_OVERRIDE() 110 SK_TO_STRING_OVERRIDE()
111 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPerlinNoiseShader) 111 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPerlinNoiseShader)
112 112
113 protected: 113 protected:
114 void flatten(SkWriteBuffer&) const override; 114 void flatten(SkWriteBuffer&) const override;
115 Context* onCreateContext(const ContextRec&, void* storage) const override; 115 Context* onCreateContext(const ContextRec&, void* storage) const override;
(...skipping 10 matching lines...) Expand all
126 const SkScalar fBaseFrequencyY; 126 const SkScalar fBaseFrequencyY;
127 const int fNumOctaves; 127 const int fNumOctaves;
128 const SkScalar fSeed; 128 const SkScalar fSeed;
129 const SkISize fTileSize; 129 const SkISize fTileSize;
130 const bool fStitchTiles; 130 const bool fStitchTiles;
131 131
132 typedef SkShader INHERITED; 132 typedef SkShader INHERITED;
133 }; 133 };
134 134
135 #endif 135 #endif
OLDNEW
« no previous file with comments | « include/effects/SkLumaColorFilter.h ('k') | include/gpu/GrClip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698