| Index: src/gpu/effects/GrBitmapTextGeoProc.h
|
| diff --git a/src/gpu/effects/GrBitmapTextGeoProc.h b/src/gpu/effects/GrBitmapTextGeoProc.h
|
| index 837dcb6fe5587553bcdf63deb7a89294bbd750ad..2bd27268142438667ffcea75d3dda9fa81781a54 100644
|
| --- a/src/gpu/effects/GrBitmapTextGeoProc.h
|
| +++ b/src/gpu/effects/GrBitmapTextGeoProc.h
|
| @@ -22,9 +22,10 @@ class GrInvariantOutput;
|
| class GrBitmapTextGeoProc : public GrGeometryProcessor {
|
| public:
|
| static GrGeometryProcessor* Create(GrColor color, GrTexture* tex, const GrTextureParams& p,
|
| - GrMaskFormat format,
|
| - const SkMatrix& localMatrix) {
|
| - return SkNEW_ARGS(GrBitmapTextGeoProc, (color, tex, p, format, localMatrix));
|
| + GrMaskFormat format, const SkMatrix& localMatrix,
|
| + bool usesLocalCoords) {
|
| + return SkNEW_ARGS(GrBitmapTextGeoProc, (color, tex, p, format, localMatrix,
|
| + usesLocalCoords));
|
| }
|
|
|
| virtual ~GrBitmapTextGeoProc() {}
|
| @@ -36,7 +37,10 @@ public:
|
| const Attribute* inTextureCoords() const { return fInTextureCoords; }
|
| GrMaskFormat maskFormat() const { return fMaskFormat; }
|
| GrColor color() const { return fColor; }
|
| + bool colorIgnored() const { return GrColor_ILLEGAL == fColor; }
|
| + bool hasVertexColor() const { return SkToBool(fInColor); }
|
| const SkMatrix& localMatrix() const { return fLocalMatrix; }
|
| + bool usesLocalCoords() const { return fUsesLocalCoords; }
|
|
|
| virtual void getGLProcessorKey(const GrBatchTracker& bt,
|
| const GrGLSLCaps& caps,
|
| @@ -45,14 +49,13 @@ public:
|
| virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt,
|
| const GrGLSLCaps& caps) const override;
|
|
|
| - void initBatchTracker(GrBatchTracker*, const GrPipelineInfo&) const override;
|
| -
|
| private:
|
| GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& params,
|
| - GrMaskFormat format, const SkMatrix& localMatrix);
|
| + GrMaskFormat format, const SkMatrix& localMatrix, bool usesLocalCoords);
|
|
|
| GrColor fColor;
|
| SkMatrix fLocalMatrix;
|
| + bool fUsesLocalCoords;
|
| GrTextureAccess fTextureAccess;
|
| const Attribute* fInPosition;
|
| const Attribute* fInColor;
|
|
|