OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |