Make all GrFragmentProcessors GL independent.
[platform/upstream/libSkiaSharp.git] / src / gpu / glsl / GrGLSLUtil.h
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