GrGLSLUtil.h 458 B

12345678910111213141516171819
  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. #ifndef GrGLSLUtil_DEFINED
  8. #define GrGLSLUtil_DEFINED
  9. class SkMatrix;
  10. /**
  11. * Helper for converting SkMatrix to a column-major float array. We assume that all GLSL backends
  12. * use a column major representation for matrices.
  13. */
  14. template<int MatrixSize> void GrGLSLGetMatrix(float* dest, const SkMatrix& src);
  15. #endif