| Index: src/gpu/GrGeometryProcessor.cpp
|
| diff --git a/src/gpu/GrGeometryProcessor.cpp b/src/gpu/GrGeometryProcessor.cpp
|
| index 344dccc731861f7e71b32562eb8b18ced4884049..db823482f32f382153bd6b7d478c566a300e3ac6 100644
|
| --- a/src/gpu/GrGeometryProcessor.cpp
|
| +++ b/src/gpu/GrGeometryProcessor.cpp
|
| @@ -231,7 +231,7 @@ void GrGLGeometryProcessor::emitTransforms(GrGLGPBuilder* pb,
|
|
|
|
|
| void
|
| -GrGLGeometryProcessor::setTransformData(const GrPrimitiveProcessor* primProc,
|
| +GrGLGeometryProcessor::setTransformData(const GrPrimitiveProcessor& primProc,
|
| const GrGLProgramDataManager& pdman,
|
| int index,
|
| const SkTArray<const GrCoordTransform*, true>& transforms) {
|
| @@ -239,7 +239,7 @@ GrGLGeometryProcessor::setTransformData(const GrPrimitiveProcessor* primProc,
|
| int numTransforms = transforms.count();
|
| for (int t = 0; t < numTransforms; ++t) {
|
| SkASSERT(procTransforms[t].fHandle.isValid());
|
| - const SkMatrix& transform = GetTransformMatrix(primProc->localMatrix(), *transforms[t]);
|
| + const SkMatrix& transform = GetTransformMatrix(primProc.localMatrix(), *transforms[t]);
|
| if (!procTransforms[t].fCurrentValue.cheapEqualTo(transform)) {
|
| pdman.setSkMatrix(procTransforms[t].fHandle.convertToUniformHandle(), transform);
|
| procTransforms[t].fCurrentValue = transform;
|
| @@ -345,7 +345,7 @@ public:
|
| }
|
| }
|
|
|
| - void setTransformData(const GrPrimitiveProcessor* primProc,
|
| + void setTransformData(const GrPrimitiveProcessor& primProc,
|
| int index,
|
| const SkTArray<const GrCoordTransform*, true>& transforms,
|
| GrGLPathRendering* glpr,
|
| @@ -354,7 +354,7 @@ public:
|
| // effect
|
| int texCoordIndex = fInstalledTransforms[index][0].fHandle.handle();
|
| for (int t = 0; t < transforms.count(); ++t) {
|
| - const SkMatrix& transform = GetTransformMatrix(primProc->localMatrix(), *transforms[t]);
|
| + const SkMatrix& transform = GetTransformMatrix(primProc.localMatrix(), *transforms[t]);
|
| GrGLPathRendering::PathTexGenComponents components =
|
| GrGLPathRendering::kST_PathTexGenComponents;
|
| if (transform.hasPerspective()) {
|
| @@ -423,7 +423,7 @@ public:
|
| }
|
| }
|
|
|
| - void setTransformData(const GrPrimitiveProcessor* primProc,
|
| + void setTransformData(const GrPrimitiveProcessor& primProc,
|
| int index,
|
| const SkTArray<const GrCoordTransform*, true>& coordTransforms,
|
| GrGLPathRendering* glpr,
|
| @@ -432,7 +432,7 @@ public:
|
| int numTransforms = transforms.count();
|
| for (int t = 0; t < numTransforms; ++t) {
|
| SkASSERT(transforms[t].fHandle.isValid());
|
| - const SkMatrix& transform = GetTransformMatrix(primProc->localMatrix(),
|
| + const SkMatrix& transform = GetTransformMatrix(primProc.localMatrix(),
|
| *coordTransforms[t]);
|
| if (transforms[t].fCurrentValue.cheapEqualTo(transform)) {
|
| continue;
|
|
|