aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPrimitiveProcessor.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-08-05 11:05:22 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-05 11:05:22 -0700
commitb2aa7cb90f4c66125056bac70dbca2093dd5ba41 (patch)
tree2a24701dd189ab74e9dc82f472a2a6c42834aff8 /src/gpu/GrPrimitiveProcessor.h
parent0e8296eaa62eb8bc37b3ffc78523183f15dfc0d1 (diff)
This CL wires up the backend portion necessary for sending transformed coords via vertex attributes.
Diffstat (limited to 'src/gpu/GrPrimitiveProcessor.h')
-rw-r--r--src/gpu/GrPrimitiveProcessor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrPrimitiveProcessor.h b/src/gpu/GrPrimitiveProcessor.h
index e5635a823b..54d7d8dde6 100644
--- a/src/gpu/GrPrimitiveProcessor.h
+++ b/src/gpu/GrPrimitiveProcessor.h
@@ -220,6 +220,12 @@ public:
bool isPathRendering() const { return fIsPathRendering; }
+ /**
+ * No Local Coord Transformation is needed in the shader, instead transformed local coords will
+ * be provided via vertex attribute.
+ */
+ virtual bool hasTransformedLocalCoords() const = 0;
+
protected:
GrPrimitiveProcessor(bool isPathRendering)
: fNumAttribs(0)