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

Unified Diff: src/gpu/glsl/GrGLSLGeometryProcessor.h

Issue 1961093002: Break apart shared use of varying and uniform transforms (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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/glsl/GrGLSLGeometryProcessor.h
diff --git a/src/gpu/glsl/GrGLSLGeometryProcessor.h b/src/gpu/glsl/GrGLSLGeometryProcessor.h
index af7d919864cf389940d9ee5cf285469e2032dcf7..72f00f15090ae372085e0005167ff4ea4b00f240 100644
--- a/src/gpu/glsl/GrGLSLGeometryProcessor.h
+++ b/src/gpu/glsl/GrGLSLGeometryProcessor.h
@@ -100,7 +100,7 @@ private:
const GrGLSLProgramDataManager& pdman,
int index,
const SkTArray<const GrCoordTransform*, true>& transforms) {
- SkSTArray<2, Transform, true>& procTransforms = fInstalledTransforms[index];
+ SkSTArray<2, UniformTransform, true>& procTransforms = fInstalledTransforms[index];
int numTransforms = transforms.count();
for (int t = 0; t < numTransforms; ++t) {
SkASSERT(procTransforms[t].fHandle.isValid());
@@ -114,6 +114,13 @@ private:
virtual void onEmitCode(EmitArgs&, GrGPArgs*) = 0;
robertphillips 2016/05/09 16:51:28 init fHandle here?
+ struct UniformTransform : public Transform {
+ UniformTransform() : Transform() {}
+ UniformHandle fHandle;
+ };
+
+ SkSTArray<8, SkSTArray<2, UniformTransform, true> > fInstalledTransforms;
+
typedef GrGLSLPrimitiveProcessor INHERITED;
};

Powered by Google App Engine
This is Rietveld 408576698