| Index: src/gpu/GrDefaultGeoProcFactory.cpp
|
| diff --git a/src/gpu/GrDefaultGeoProcFactory.cpp b/src/gpu/GrDefaultGeoProcFactory.cpp
|
| index 2c5117be9bbbe3ff70f7661acbefb91dccb65451..8cb7fff6570e98869ab8daefe9c4b6c03a09d980 100644
|
| --- a/src/gpu/GrDefaultGeoProcFactory.cpp
|
| +++ b/src/gpu/GrDefaultGeoProcFactory.cpp
|
| @@ -103,8 +103,11 @@ public:
|
| vs->codeAppendf("%s = %s;", vs->localCoords(), gp.inPosition()->fName);
|
| }
|
|
|
| + // setup uniform viewMatrix
|
| + this->setupUniformViewMatrix(pb);
|
| +
|
| // setup position varying
|
| - vs->codeAppendf("%s = %s * vec3(%s, 1);", vs->glPosition(), vs->uViewM(),
|
| + vs->codeAppendf("%s = %s * vec3(%s, 1);", vs->glPosition(), this->uViewM(),
|
| gp.inPosition()->fName);
|
|
|
| // Setup coverage as pass through
|
| @@ -141,6 +144,8 @@ public:
|
| virtual void setData(const GrGLProgramDataManager& pdman,
|
| const GrPrimitiveProcessor& gp,
|
| const GrBatchTracker& bt) SK_OVERRIDE {
|
| + this->setUniformViewMatrix(pdman, gp.viewMatrix());
|
| +
|
| const BatchTracker& local = bt.cast<BatchTracker>();
|
| if (kUniform_GrGPInput == local.fInputColorType && local.fColor != fColor) {
|
| GrGLfloat c[4];
|
|
|