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

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

Issue 1243583002: Add support for transformedLocalCoords to GrDefaultGeoProc (Closed) Base URL: https://skia.googlesource.com/skia.git@pipelinetobatch2
Patch Set: tweaks Created 5 years, 4 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/GrGLGeometryProcessor.h
diff --git a/src/gpu/gl/GrGLGeometryProcessor.h b/src/gpu/gl/GrGLGeometryProcessor.h
index 747d82ab4859f0b76f244562d4ae1a39671eb5d4..f78c1d62c1c39f7e0d5425d4248f717f10f18abe 100644
--- a/src/gpu/gl/GrGLGeometryProcessor.h
+++ b/src/gpu/gl/GrGLGeometryProcessor.h
@@ -50,6 +50,7 @@ protected:
this->emitTransforms(gp, posVar, localCoords, SkMatrix::I(), tin, tout);
}
+ // emit transforms via uniform
bsalomon 2015/08/05 15:17:02 // Emit a uniform matrix for each coord transform.
void emitTransforms(GrGLGPBuilder*,
const GrShaderVar& posVar,
const char* localCoords,
@@ -57,6 +58,12 @@ protected:
const TransformsIn&,
TransformsOut*);
+ // caller has emitted transforms via attributes
bsalomon 2015/08/05 15:17:02 // Emit pre-transformed coords as a vertex attribu
+ void emitTransforms(GrGLGPBuilder*,
+ const char* localCoords,
+ const TransformsIn& tin,
+ TransformsOut* tout);
+
struct GrGPArgs {
// The variable used by a GP to store its position. It can be
// either a vec2 or a vec3 depending on the presence of perspective.

Powered by Google App Engine
This is Rietveld 408576698