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

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

Issue 278963002: add localmatrix parameter to shader's asNewEffect (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkShader.h ('k') | src/core/SkBitmapProcShader.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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « include/core/SkShader.h ('k') | src/core/SkBitmapProcShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698