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

Side by Side Diff: src/effects/SkPerlinNoiseShader.cpp

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 | « src/effects/SkLumaColorFilter.cpp ('k') | src/effects/SkPixelXorXfermode.cpp » ('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 "SkDither.h" 8 #include "SkDither.h"
9 #include "SkPerlinNoiseShader.h" 9 #include "SkPerlinNoiseShader.h"
10 #include "SkColorFilter.h" 10 #include "SkColorFilter.h"
(...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 1315
1316 #else 1316 #else
1317 1317
1318 GrEffectRef* SkPerlinNoiseShader::asNewEffect(GrContext*, const SkPaint&) const { 1318 GrEffectRef* SkPerlinNoiseShader::asNewEffect(GrContext*, const SkPaint&) const {
1319 SkDEBUGFAIL("Should not call in GPU-less build"); 1319 SkDEBUGFAIL("Should not call in GPU-less build");
1320 return NULL; 1320 return NULL;
1321 } 1321 }
1322 1322
1323 #endif 1323 #endif
1324 1324
1325 #ifdef SK_DEVELOPER 1325 #ifndef SK_IGNORE_TO_STRING
1326 void SkPerlinNoiseShader::toString(SkString* str) const { 1326 void SkPerlinNoiseShader::toString(SkString* str) const {
1327 str->append("SkPerlinNoiseShader: ("); 1327 str->append("SkPerlinNoiseShader: (");
1328 1328
1329 str->append("type: "); 1329 str->append("type: ");
1330 switch (fType) { 1330 switch (fType) {
1331 case kFractalNoise_Type: 1331 case kFractalNoise_Type:
1332 str->append("\"fractal noise\""); 1332 str->append("\"fractal noise\"");
1333 break; 1333 break;
1334 case kTurbulence_Type: 1334 case kTurbulence_Type:
1335 str->append("\"turbulence\""); 1335 str->append("\"turbulence\"");
(...skipping 11 matching lines...) Expand all
1347 str->append(" seed: "); 1347 str->append(" seed: ");
1348 str->appendScalar(fSeed); 1348 str->appendScalar(fSeed);
1349 str->append(" stitch tiles: "); 1349 str->append(" stitch tiles: ");
1350 str->append(fStitchTiles ? "true " : "false "); 1350 str->append(fStitchTiles ? "true " : "false ");
1351 1351
1352 this->INHERITED::toString(str); 1352 this->INHERITED::toString(str);
1353 1353
1354 str->append(")"); 1354 str->append(")");
1355 } 1355 }
1356 #endif 1356 #endif
OLDNEW
« no previous file with comments | « src/effects/SkLumaColorFilter.cpp ('k') | src/effects/SkPixelXorXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698