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 25 matching lines...) Expand all Loading... |
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 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con
st override; | 44 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con
st override; |
45 | 45 |
46 GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps& caps) const overr
ide; | 46 GrGLSLPrimitiveProcessor* createGLInstance(const GrGLSLCaps& caps) const ove
rride; |
47 | 47 |
48 private: | 48 private: |
49 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para
ms, | 49 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para
ms, |
50 GrMaskFormat format, const SkMatrix& localMatrix, bool u
sesLocalCoords); | 50 GrMaskFormat format, const SkMatrix& localMatrix, bool u
sesLocalCoords); |
51 | 51 |
52 GrColor fColor; | 52 GrColor fColor; |
53 SkMatrix fLocalMatrix; | 53 SkMatrix fLocalMatrix; |
54 bool fUsesLocalCoords; | 54 bool fUsesLocalCoords; |
55 GrTextureAccess fTextureAccess; | 55 GrTextureAccess fTextureAccess; |
56 const Attribute* fInPosition; | 56 const Attribute* fInPosition; |
57 const Attribute* fInColor; | 57 const Attribute* fInColor; |
58 const Attribute* fInTextureCoords; | 58 const Attribute* fInTextureCoords; |
59 GrMaskFormat fMaskFormat; | 59 GrMaskFormat fMaskFormat; |
60 | 60 |
61 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 61 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
62 | 62 |
63 typedef GrGeometryProcessor INHERITED; | 63 typedef GrGeometryProcessor INHERITED; |
64 }; | 64 }; |
65 | 65 |
66 #endif | 66 #endif |
OLD | NEW |