aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/glsl/GrGLSLUtil.h
blob: 0d2b7e742f4d9a9600e997f5aed6c233dd060d4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/

#ifndef GrGLSLUtil_DEFINED
#define GrGLSLUtil_DEFINED

class SkMatrix;

/**
 * Helper for converting SkMatrix to a column-major float array. We assume that all GLSL backends
 * use a column major representation for matrices.
 */
template<int MatrixSize> void GrGLSLGetMatrix(float* dest, const SkMatrix& src);

#endif