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

Unified Diff: src/gpu/gl/GrGLUniformManager.cpp

Issue 23537028: Enable vertexless shading when path rendering is supported (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/GrGLUniformManager.cpp
diff --git a/src/gpu/gl/GrGLUniformManager.cpp b/src/gpu/gl/GrGLUniformManager.cpp
index 74bb651fa4b5a6b55680c9d5be49e9ccaaa45568..b3ed2dc7a4df34c1792f3d726b180d5361fcf8ea 100644
--- a/src/gpu/gl/GrGLUniformManager.cpp
+++ b/src/gpu/gl/GrGLUniformManager.cpp
@@ -233,6 +233,18 @@ void GrGLUniformManager::setMatrix4fv(UniformHandle u,
}
}
+void GrGLUniformManager::enableGlobalTexGen(int unitIndex,
+ int numComponents,
+ const GrGLfloat* coefficients) const {
+ fGpu->enableTexGen(unitIndex, numComponents, coefficients);
+}
+
+void GrGLUniformManager::enableGlobalTexGen(int unitIndex,
+ int numComponents,
+ const SkMatrix& matrix) const {
+ fGpu->enableTexGen(unitIndex, numComponents, matrix);
+}
+
void GrGLUniformManager::setSkMatrix(UniformHandle u, const SkMatrix& matrix) const {
// GR_STATIC_ASSERT(SK_SCALAR_IS_FLOAT);
GrGLfloat mt[] = {

Powered by Google App Engine
This is Rietveld 408576698