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

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

Issue 134163010: Refactor read and write buffers. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: original write flags were fine Created 6 years, 10 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
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_DEVELOPER_TO_STRING()
73 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPerlinNoiseShader) 73 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPerlinNoiseShader)
74 74
75 protected: 75 protected:
76 SkPerlinNoiseShader(SkFlattenableReadBuffer&); 76 SkPerlinNoiseShader(SkReadBuffer&);
77 virtual void flatten(SkFlattenableWriteBuffer&) 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 = NULL); 82 const SkISize* tileSize = NULL);
83 virtual ~SkPerlinNoiseShader(); 83 virtual ~SkPerlinNoiseShader();
84 84
85 void setTileSize(const SkISize&); 85 void setTileSize(const SkISize&);
86 86
87 void initPaint(PaintingData& paintingData); 87 void initPaint(PaintingData& paintingData);
(...skipping 14 matching lines...) Expand all
102 SkISize fTileSize; 102 SkISize fTileSize;
103 bool fStitchTiles; 103 bool fStitchTiles;
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698