Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: src/gpu/gl/GrGLUtil.h

Issue 23767005: Add getGLMatrix method to MatrixState (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/gl/GrGLUtil.h
diff --git a/src/gpu/gl/GrGLUtil.h b/src/gpu/gl/GrGLUtil.h
index 9a82b0b97afa89f37aa74d26a83a856e10f28b27..686943bdcef2c82626a43f4e8860208b3bb6d710 100644
--- a/src/gpu/gl/GrGLUtil.h
+++ b/src/gpu/gl/GrGLUtil.h
@@ -11,6 +11,8 @@
#include "gl/GrGLInterface.h"
#include "GrGLDefines.h"
+class SkMatrix;
+
////////////////////////////////////////////////////////////////////////////////
typedef uint32_t GrGLVersion;
@@ -91,6 +93,11 @@ void GrGLCheckErr(const GrGLInterface* gl,
void GrGLClearErr(const GrGLInterface* gl);
+/**
+ * Helper for converting SkMatrix to a column-major GL float array
+ */
+template<int MatrixSize> void GrGLGetMatrix(GrGLfloat* dest, const SkMatrix& src);
+
////////////////////////////////////////////////////////////////////////////////
/**

Powered by Google App Engine
This is Rietveld 408576698