OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 #include "GrGLProgram.h" | 7 #include "GrGLProgram.h" |
8 | 8 |
| 9 #include "builders/GrGLFragmentOnlyProgramBuilder.h" |
| 10 #include "builders/GrGLFullProgramBuilder.h" |
9 #include "GrAllocator.h" | 11 #include "GrAllocator.h" |
10 #include "GrEffect.h" | 12 #include "GrEffect.h" |
11 #include "GrCoordTransform.h" | 13 #include "GrCoordTransform.h" |
12 #include "GrGLEffect.h" | 14 #include "GrGLEffect.h" |
13 #include "GrGpuGL.h" | 15 #include "GrGpuGL.h" |
14 #include "GrGLPathRendering.h" | 16 #include "GrGLPathRendering.h" |
15 #include "GrGLShaderVar.h" | 17 #include "GrGLShaderVar.h" |
16 #include "GrGLSL.h" | 18 #include "GrGLSL.h" |
17 #include "GrOptDrawState.h" | 19 #include "GrOptDrawState.h" |
18 #include "SkXfermode.h" | 20 #include "SkXfermode.h" |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 263 |
262 GrGLfloat viewMatrix[3 * 3]; | 264 GrGLfloat viewMatrix[3 * 3]; |
263 fMatrixState.getGLMatrix<3>(viewMatrix); | 265 fMatrixState.getGLMatrix<3>(viewMatrix); |
264 fProgramDataManager.setMatrix3f(fBuiltinUniformHandles.fViewMatrixUni, v
iewMatrix); | 266 fProgramDataManager.setMatrix3f(fBuiltinUniformHandles.fViewMatrixUni, v
iewMatrix); |
265 | 267 |
266 GrGLfloat rtAdjustmentVec[4]; | 268 GrGLfloat rtAdjustmentVec[4]; |
267 fMatrixState.getRTAdjustmentVec(rtAdjustmentVec); | 269 fMatrixState.getRTAdjustmentVec(rtAdjustmentVec); |
268 fProgramDataManager.set4fv(fBuiltinUniformHandles.fRTAdjustmentUni, 1, r
tAdjustmentVec); | 270 fProgramDataManager.set4fv(fBuiltinUniformHandles.fRTAdjustmentUni, 1, r
tAdjustmentVec); |
269 } | 271 } |
270 } | 272 } |
OLD | NEW |