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 "GrInvariantOutput.h" | 9 #include "GrInvariantOutput.h" |
10 #include "GrTexture.h" | 10 #include "GrTexture.h" |
11 #include "gl/GrGLFragmentProcessor.h" | |
12 #include "gl/GrGLTexture.h" | |
13 #include "gl/GrGLGeometryProcessor.h" | 11 #include "gl/GrGLGeometryProcessor.h" |
| 12 #include "glsl/GrGLSLFragmentProcessor.h" |
14 #include "glsl/GrGLSLFragmentShaderBuilder.h" | 13 #include "glsl/GrGLSLFragmentShaderBuilder.h" |
15 #include "glsl/GrGLSLProgramBuilder.h" | 14 #include "glsl/GrGLSLProgramBuilder.h" |
16 #include "glsl/GrGLSLProgramDataManager.h" | 15 #include "glsl/GrGLSLProgramDataManager.h" |
17 #include "glsl/GrGLSLVertexShaderBuilder.h" | 16 #include "glsl/GrGLSLVertexShaderBuilder.h" |
18 | 17 |
19 class GrGLBitmapTextGeoProc : public GrGLGeometryProcessor { | 18 class GrGLBitmapTextGeoProc : public GrGLGeometryProcessor { |
20 public: | 19 public: |
21 GrGLBitmapTextGeoProc() : fColor(GrColor_ILLEGAL) {} | 20 GrGLBitmapTextGeoProc() : fColor(GrColor_ILLEGAL) {} |
22 | 21 |
23 void onEmitCode(EmitArgs& args, GrGPArgs* gpArgs) override { | 22 void onEmitCode(EmitArgs& args, GrGPArgs* gpArgs) override { |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 break; | 184 break; |
186 case 2: | 185 case 2: |
187 format = kARGB_GrMaskFormat; | 186 format = kARGB_GrMaskFormat; |
188 break; | 187 break; |
189 } | 188 } |
190 | 189 |
191 return GrBitmapTextGeoProc::Create(GrRandomColor(d->fRandom), d->fTextures[t
exIdx], params, | 190 return GrBitmapTextGeoProc::Create(GrRandomColor(d->fRandom), d->fTextures[t
exIdx], params, |
192 format, GrTest::TestMatrix(d->fRandom), | 191 format, GrTest::TestMatrix(d->fRandom), |
193 d->fRandom->nextBool()); | 192 d->fRandom->nextBool()); |
194 } | 193 } |
OLD | NEW |