| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrBitmapTextGeoProc_DEFINED | 8 #ifndef GrBitmapTextGeoProc_DEFINED |
| 9 #define GrBitmapTextGeoProc_DEFINED | 9 #define GrBitmapTextGeoProc_DEFINED |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 const Attribute* inPosition() const { return fInPosition; } | 34 const Attribute* inPosition() const { return fInPosition; } |
| 35 const Attribute* inColor() const { return fInColor; } | 35 const Attribute* inColor() const { return fInColor; } |
| 36 const Attribute* inTextureCoords() const { return fInTextureCoords; } | 36 const Attribute* inTextureCoords() const { return fInTextureCoords; } |
| 37 GrMaskFormat maskFormat() const { return fMaskFormat; } | 37 GrMaskFormat maskFormat() const { return fMaskFormat; } |
| 38 GrColor color() const { return fColor; } | 38 GrColor color() const { return fColor; } |
| 39 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; } | 39 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; } |
| 40 bool hasVertexColor() const { return SkToBool(fInColor); } | 40 bool hasVertexColor() const { return SkToBool(fInColor); } |
| 41 const SkMatrix& localMatrix() const { return fLocalMatrix; } | 41 const SkMatrix& localMatrix() const { return fLocalMatrix; } |
| 42 bool usesLocalCoords() const { return fUsesLocalCoords; } | 42 bool usesLocalCoords() const { return fUsesLocalCoords; } |
| 43 | 43 |
| 44 virtual void getGLProcessorKey(const GrBatchTracker& bt, | 44 virtual void getGLProcessorKey(const GrGLSLCaps& caps, |
| 45 const GrGLSLCaps& caps, | |
| 46 GrProcessorKeyBuilder* b) const override; | 45 GrProcessorKeyBuilder* b) const override; |
| 47 | 46 |
| 48 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, | 47 virtual GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps& caps) con
st override; |
| 49 const GrGLSLCaps& caps) con
st override; | |
| 50 | 48 |
| 51 private: | 49 private: |
| 52 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para
ms, | 50 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para
ms, |
| 53 GrMaskFormat format, const SkMatrix& localMatrix, bool u
sesLocalCoords); | 51 GrMaskFormat format, const SkMatrix& localMatrix, bool u
sesLocalCoords); |
| 54 | 52 |
| 55 GrColor fColor; | 53 GrColor fColor; |
| 56 SkMatrix fLocalMatrix; | 54 SkMatrix fLocalMatrix; |
| 57 bool fUsesLocalCoords; | 55 bool fUsesLocalCoords; |
| 58 GrTextureAccess fTextureAccess; | 56 GrTextureAccess fTextureAccess; |
| 59 const Attribute* fInPosition; | 57 const Attribute* fInPosition; |
| 60 const Attribute* fInColor; | 58 const Attribute* fInColor; |
| 61 const Attribute* fInTextureCoords; | 59 const Attribute* fInTextureCoords; |
| 62 GrMaskFormat fMaskFormat; | 60 GrMaskFormat fMaskFormat; |
| 63 | 61 |
| 64 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 62 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
| 65 | 63 |
| 66 typedef GrGeometryProcessor INHERITED; | 64 typedef GrGeometryProcessor INHERITED; |
| 67 }; | 65 }; |
| 68 | 66 |
| 69 #endif | 67 #endif |
| OLD | NEW |