| 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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 | 572 |
| 573 typedef GrGLPerlinNoise GLProcessor; | 573 typedef GrGLPerlinNoise GLProcessor; |
| 574 | 574 |
| 575 private: | 575 private: |
| 576 virtual bool onIsEqual(const GrFragmentProcessor& sBase) const SK_OVERRIDE { | 576 virtual bool onIsEqual(const GrFragmentProcessor& sBase) const SK_OVERRIDE { |
| 577 const GrPerlinNoiseEffect& s = sBase.cast<GrPerlinNoiseEffect>(); | 577 const GrPerlinNoiseEffect& s = sBase.cast<GrPerlinNoiseEffect>(); |
| 578 return fType == s.fType && | 578 return fType == s.fType && |
| 579 fPaintingData->fBaseFrequency == s.fPaintingData->fBaseFrequency
&& | 579 fPaintingData->fBaseFrequency == s.fPaintingData->fBaseFrequency
&& |
| 580 fNumOctaves == s.fNumOctaves && | 580 fNumOctaves == s.fNumOctaves && |
| 581 fStitchTiles == s.fStitchTiles && | 581 fStitchTiles == s.fStitchTiles && |
| 582 fCoordTransform.getMatrix() == s.fCoordTransform.getMatrix() && | |
| 583 fAlpha == s.fAlpha && | 582 fAlpha == s.fAlpha && |
| 584 fPermutationsAccess.getTexture() == s.fPermutationsAccess.getText
ure() && | 583 fPermutationsAccess.getTexture() == s.fPermutationsAccess.getText
ure() && |
| 585 fNoiseAccess.getTexture() == s.fNoiseAccess.getTexture() && | 584 fNoiseAccess.getTexture() == s.fNoiseAccess.getTexture() && |
| 586 fPaintingData->fStitchDataInit == s.fPaintingData->fStitchDataIni
t; | 585 fPaintingData->fStitchDataInit == s.fPaintingData->fStitchDataIni
t; |
| 587 } | 586 } |
| 588 | 587 |
| 589 void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { | 588 void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { |
| 590 inout->setToUnknown(); | 589 inout->setToUnknown(); |
| 591 } | 590 } |
| 592 | 591 |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 str->append(" seed: "); | 1052 str->append(" seed: "); |
| 1054 str->appendScalar(fSeed); | 1053 str->appendScalar(fSeed); |
| 1055 str->append(" stitch tiles: "); | 1054 str->append(" stitch tiles: "); |
| 1056 str->append(fStitchTiles ? "true " : "false "); | 1055 str->append(fStitchTiles ? "true " : "false "); |
| 1057 | 1056 |
| 1058 this->INHERITED::toString(str); | 1057 this->INHERITED::toString(str); |
| 1059 | 1058 |
| 1060 str->append(")"); | 1059 str->append(")"); |
| 1061 } | 1060 } |
| 1062 #endif | 1061 #endif |
| OLD | NEW |