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 "GrBitmapTextGeoProc.h" | 8 #include "GrBitmapTextGeoProc.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 #include "gl/GrGLProcessor.h" | 12 #include "gl/GrGLFragmentProcessor.h" |
13 #include "gl/GrGLTexture.h" | 13 #include "gl/GrGLTexture.h" |
14 #include "gl/GrGLGeometryProcessor.h" | 14 #include "gl/GrGLGeometryProcessor.h" |
15 #include "gl/builders/GrGLProgramBuilder.h" | 15 #include "gl/builders/GrGLProgramBuilder.h" |
16 | 16 |
17 class GrGLBitmapTextGeoProc : public GrGLGeometryProcessor { | 17 class GrGLBitmapTextGeoProc : public GrGLGeometryProcessor { |
18 public: | 18 public: |
19 GrGLBitmapTextGeoProc(const GrGeometryProcessor&, const GrBatchTracker&) | 19 GrGLBitmapTextGeoProc(const GrGeometryProcessor&, const GrBatchTracker&) |
20 : fColor(GrColor_ILLEGAL) {} | 20 : fColor(GrColor_ILLEGAL) {} |
21 | 21 |
22 void onEmitCode(EmitArgs& args, GrGPArgs* gpArgs) override{ | 22 void onEmitCode(EmitArgs& args, GrGPArgs* gpArgs) override{ |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 break; | 177 break; |
178 case 2: | 178 case 2: |
179 format = kARGB_GrMaskFormat; | 179 format = kARGB_GrMaskFormat; |
180 break; | 180 break; |
181 } | 181 } |
182 | 182 |
183 return GrBitmapTextGeoProc::Create(GrRandomColor(d->fRandom), d->fTextures[t
exIdx], params, | 183 return GrBitmapTextGeoProc::Create(GrRandomColor(d->fRandom), d->fTextures[t
exIdx], params, |
184 format, GrTest::TestMatrix(d->fRandom), | 184 format, GrTest::TestMatrix(d->fRandom), |
185 d->fRandom->nextBool()); | 185 d->fRandom->nextBool()); |
186 } | 186 } |
OLD | NEW |