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

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

Issue 197763008: Allow toString capability to be toggled independent of developer mode (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: remove gyp changes Created 6 years, 9 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/effects/SkLumaColorFilter.h ('k') | include/effects/SkPixelXorXfermode.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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « include/effects/SkLumaColorFilter.h ('k') | include/effects/SkPixelXorXfermode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698