| 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 "GrDistanceFieldGeoProc.h" | 8 #include "GrDistanceFieldGeoProc.h" |
| 9 #include "GrFontAtlasSizes.h" | |
| 10 #include "GrInvariantOutput.h" | 9 #include "GrInvariantOutput.h" |
| 11 #include "GrTexture.h" | 10 #include "GrTexture.h" |
| 12 | 11 |
| 13 #include "SkDistanceFieldGen.h" | 12 #include "SkDistanceFieldGen.h" |
| 14 | 13 |
| 15 #include "gl/GrGLFragmentProcessor.h" | 14 #include "gl/GrGLFragmentProcessor.h" |
| 16 #include "gl/GrGLTexture.h" | 15 #include "gl/GrGLTexture.h" |
| 17 #include "gl/GrGLGeometryProcessor.h" | 16 #include "gl/GrGLGeometryProcessor.h" |
| 18 #include "gl/builders/GrGLProgramBuilder.h" | 17 #include "gl/builders/GrGLProgramBuilder.h" |
| 19 | 18 |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 uint32_t flags = kUseLCD_DistanceFieldEffectFlag; | 766 uint32_t flags = kUseLCD_DistanceFieldEffectFlag; |
| 768 flags |= d->fRandom->nextBool() ? kUniformScale_DistanceFieldEffectMask : 0; | 767 flags |= d->fRandom->nextBool() ? kUniformScale_DistanceFieldEffectMask : 0; |
| 769 flags |= d->fRandom->nextBool() ? kBGR_DistanceFieldEffectFlag : 0; | 768 flags |= d->fRandom->nextBool() ? kBGR_DistanceFieldEffectFlag : 0; |
| 770 return GrDistanceFieldLCDTextGeoProc::Create(GrRandomColor(d->fRandom), | 769 return GrDistanceFieldLCDTextGeoProc::Create(GrRandomColor(d->fRandom), |
| 771 GrTest::TestMatrix(d->fRandom), | 770 GrTest::TestMatrix(d->fRandom), |
| 772 d->fTextures[texIdx], params, | 771 d->fTextures[texIdx], params, |
| 773 wa, | 772 wa, |
| 774 flags, | 773 flags, |
| 775 d->fRandom->nextBool()); | 774 d->fRandom->nextBool()); |
| 776 } | 775 } |
| OLD | NEW |