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 "GrDistanceFieldTextureEffect.h" | 8 #include "GrDistanceFieldGeoProc.h" |
9 #include "GrFontAtlasSizes.h" | 9 #include "GrFontAtlasSizes.h" |
10 #include "GrInvariantOutput.h" | 10 #include "GrInvariantOutput.h" |
11 #include "GrTexture.h" | 11 #include "GrTexture.h" |
12 | 12 |
13 #include "SkDistanceFieldGen.h" | 13 #include "SkDistanceFieldGen.h" |
14 | 14 |
15 #include "gl/GrGLProcessor.h" | 15 #include "gl/GrGLProcessor.h" |
16 #include "gl/GrGLSL.h" | 16 #include "gl/GrGLSL.h" |
17 #include "gl/GrGLTexture.h" | 17 #include "gl/GrGLTexture.h" |
18 #include "gl/GrGLGeometryProcessor.h" | 18 #include "gl/GrGLGeometryProcessor.h" |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 uint32_t flags = kUseLCD_DistanceFieldEffectFlag; | 853 uint32_t flags = kUseLCD_DistanceFieldEffectFlag; |
854 flags |= random->nextBool() ? kUniformScale_DistanceFieldEffectMask : 0; | 854 flags |= random->nextBool() ? kUniformScale_DistanceFieldEffectMask : 0; |
855 flags |= random->nextBool() ? kBGR_DistanceFieldEffectFlag : 0; | 855 flags |= random->nextBool() ? kBGR_DistanceFieldEffectFlag : 0; |
856 return GrDistanceFieldLCDTextGeoProc::Create(GrRandomColor(random), | 856 return GrDistanceFieldLCDTextGeoProc::Create(GrRandomColor(random), |
857 GrProcessorUnitTest::TestMatrix
(random), | 857 GrProcessorUnitTest::TestMatrix
(random), |
858 GrProcessorUnitTest::TestMatrix
(random), | 858 GrProcessorUnitTest::TestMatrix
(random), |
859 textures[texIdx], params, | 859 textures[texIdx], params, |
860 wa, | 860 wa, |
861 flags); | 861 flags); |
862 } | 862 } |
OLD | NEW |