| 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 | 7 |
| 8 #include "GrGLProgram.h" | 8 #include "GrGLProgram.h" |
| 9 | 9 |
| 10 #include "GrAllocator.h" | 10 #include "GrAllocator.h" |
| 11 #include "GrEffect.h" | 11 #include "GrEffect.h" |
| 12 #include "GrCoordTransform.h" | 12 #include "GrCoordTransform.h" |
| 13 #include "GrDrawEffect.h" | |
| 14 #include "GrGLEffect.h" | 13 #include "GrGLEffect.h" |
| 15 #include "GrGpuGL.h" | 14 #include "GrGpuGL.h" |
| 16 #include "GrGLPathRendering.h" | 15 #include "GrGLPathRendering.h" |
| 17 #include "GrGLShaderVar.h" | 16 #include "GrGLShaderVar.h" |
| 18 #include "GrGLSL.h" | 17 #include "GrGLSL.h" |
| 19 #include "SkXfermode.h" | 18 #include "SkXfermode.h" |
| 20 | 19 |
| 21 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X) | 20 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X) |
| 22 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X) | 21 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X) |
| 23 | 22 |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 | 273 |
| 275 GrGLfloat viewMatrix[3 * 3]; | 274 GrGLfloat viewMatrix[3 * 3]; |
| 276 fMatrixState.getGLMatrix<3>(viewMatrix); | 275 fMatrixState.getGLMatrix<3>(viewMatrix); |
| 277 fProgramDataManager.setMatrix3f(fBuiltinUniformHandles.fViewMatrixUni, v
iewMatrix); | 276 fProgramDataManager.setMatrix3f(fBuiltinUniformHandles.fViewMatrixUni, v
iewMatrix); |
| 278 | 277 |
| 279 GrGLfloat rtAdjustmentVec[4]; | 278 GrGLfloat rtAdjustmentVec[4]; |
| 280 fMatrixState.getRTAdjustmentVec(rtAdjustmentVec); | 279 fMatrixState.getRTAdjustmentVec(rtAdjustmentVec); |
| 281 fProgramDataManager.set4fv(fBuiltinUniformHandles.fRTAdjustmentUni, 1, r
tAdjustmentVec); | 280 fProgramDataManager.set4fv(fBuiltinUniformHandles.fRTAdjustmentUni, 1, r
tAdjustmentVec); |
| 282 } | 281 } |
| 283 } | 282 } |
| OLD | NEW |