| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "gl/GrGLUniformHandler.h" | 8 #include "gl/GrGLUniformHandler.h" |
| 9 | 9 |
| 10 #include "gl/GrGLCaps.h" | 10 #include "gl/GrGLCaps.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 GL_CALL_RET(location, GetUniformLocation(programID, fUniforms[i].fVa
riable.c_str())); | 79 GL_CALL_RET(location, GetUniformLocation(programID, fUniforms[i].fVa
riable.c_str())); |
| 80 fUniforms[i].fLocation = location; | 80 fUniforms[i].fLocation = location; |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 } | 83 } |
| 84 | 84 |
| 85 const GrGLGpu* GrGLUniformHandler::glGpu() const { | 85 const GrGLGpu* GrGLUniformHandler::glGpu() const { |
| 86 GrGLProgramBuilder* glPB = (GrGLProgramBuilder*) fProgramBuilder; | 86 GrGLProgramBuilder* glPB = (GrGLProgramBuilder*) fProgramBuilder; |
| 87 return glPB->gpu(); | 87 return glPB->gpu(); |
| 88 } | 88 } |
| 89 | |
| 90 | |
| OLD | NEW |