| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "GrGLProgramBuilder.h" | 8 #include "GrGLProgramBuilder.h" |
| 9 | 9 |
| 10 #include "GrAutoLocaleSetter.h" | 10 #include "GrAutoLocaleSetter.h" |
| 11 #include "GrCoordTransform.h" | 11 #include "GrCoordTransform.h" |
| 12 #include "GrGLProgramBuilder.h" | 12 #include "GrGLProgramBuilder.h" |
| 13 #include "GrTexture.h" | 13 #include "GrTexture.h" |
| 14 #include "SkRTConf.h" | 14 #include "SkRTConf.h" |
| 15 #include "SkTraceEvent.h" | 15 #include "SkTraceEvent.h" |
| 16 #include "gl/GrGLGeometryProcessor.h" | 16 #include "gl/GrGLGeometryProcessor.h" |
| 17 #include "gl/GrGLGpu.h" | 17 #include "gl/GrGLGpu.h" |
| 18 #include "gl/GrGLPathProcessor.h" | |
| 19 #include "gl/GrGLProgram.h" | 18 #include "gl/GrGLProgram.h" |
| 20 #include "gl/GrGLSLPrettyPrint.h" | 19 #include "gl/GrGLSLPrettyPrint.h" |
| 21 #include "gl/GrGLXferProcessor.h" | 20 #include "gl/GrGLXferProcessor.h" |
| 22 #include "glsl/GrGLSLCaps.h" | 21 #include "glsl/GrGLSLCaps.h" |
| 23 | 22 |
| 24 #define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X) | 23 #define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X) |
| 25 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(this->gpu()->glInterface(), R, X) | 24 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(this->gpu()->glInterface(), R, X) |
| 26 | 25 |
| 27 const int GrGLProgramBuilder::kVarsPerBlock = 8; | 26 const int GrGLProgramBuilder::kVarsPerBlock = 8; |
| 28 | 27 |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 } | 515 } |
| 517 | 516 |
| 518 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 517 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 519 | 518 |
| 520 GrGLInstalledFragProcs::~GrGLInstalledFragProcs() { | 519 GrGLInstalledFragProcs::~GrGLInstalledFragProcs() { |
| 521 int numProcs = fProcs.count(); | 520 int numProcs = fProcs.count(); |
| 522 for (int i = 0; i < numProcs; ++i) { | 521 for (int i = 0; i < numProcs; ++i) { |
| 523 delete fProcs[i]; | 522 delete fProcs[i]; |
| 524 } | 523 } |
| 525 } | 524 } |
| OLD | NEW |