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

Side by Side Diff: gm/perlinnoise.cpp

Issue 13047005: New SVG turbulence in Skia (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | « no previous file | gyp/effects.gypi » ('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 #include "gm.h" 8 #include "gm.h"
9 #include "SkBitmapSource.h"
10 #include "SkRectShaderImageFilter.h"
11 #include "SkPerlinNoiseShader.h" 9 #include "SkPerlinNoiseShader.h"
12 10
13 namespace skiagm { 11 namespace skiagm {
14 12
15 class PerlinNoiseGM : public GM { 13 class PerlinNoiseGM : public GM {
16 public: 14 public:
17 PerlinNoiseGM() { 15 PerlinNoiseGM() {
18 this->setBGColor(0xFF000000); 16 this->setBGColor(0xFF000000);
19 fSize = SkISize::Make(80, 80); 17 fSize = SkISize::Make(80, 80);
20 } 18 }
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 typedef GM INHERITED; 104 typedef GM INHERITED;
107 SkISize fSize; 105 SkISize fSize;
108 }; 106 };
109 107
110 ////////////////////////////////////////////////////////////////////////////// 108 //////////////////////////////////////////////////////////////////////////////
111 109
112 static GM* MyFactory(void*) { return new PerlinNoiseGM; } 110 static GM* MyFactory(void*) { return new PerlinNoiseGM; }
113 static GMRegistry reg(MyFactory); 111 static GMRegistry reg(MyFactory);
114 112
115 } 113 }
OLDNEW
« no previous file with comments | « no previous file | gyp/effects.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698