egdaniel | 64c4728 | 2015-11-13 06:54:19 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef GrGLSLUtil_DEFINED |
| 9 | #define GrGLSLUtil_DEFINED |
| 10 | |
| 11 | class SkMatrix; |
| 12 | |
| 13 | /** |
| 14 | * Helper for converting SkMatrix to a column-major float array. We assume that all GLSL backends |
| 15 | * use a column major representation for matrices. |
| 16 | */ |
| 17 | template<int MatrixSize> void GrGLSLGetMatrix(float* dest, const SkMatrix& src); |
| 18 | |
| 19 | #endif |