| 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 17 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 29 | 29 |
| 30 virtual ~GrBitmapTextGeoProc() {} | 30 virtual ~GrBitmapTextGeoProc() {} |
| 31 | 31 |
| 32 const char* name() const override { return "Texture"; } | 32 const char* name() const override { return "Texture"; } |
| 33 | 33 |
| 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 | 39 |
| 39 virtual void getGLProcessorKey(const GrBatchTracker& bt, | 40 virtual void getGLProcessorKey(const GrBatchTracker& bt, |
| 40 const GrGLSLCaps& caps, | 41 const GrGLSLCaps& caps, |
| 41 GrProcessorKeyBuilder* b) const override; | 42 GrProcessorKeyBuilder* b) const override; |
| 42 | 43 |
| 43 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, | 44 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, |
| 44 const GrGLSLCaps& caps) con
st override; | 45 const GrGLSLCaps& caps) con
st override; |
| 45 | 46 |
| 46 void initBatchTracker(GrBatchTracker*, const GrPipelineInfo&) const override
; | 47 void initBatchTracker(GrBatchTracker*, const GrPipelineInfo&) const override
; |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para
ms, | 50 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para
ms, |
| 50 GrMaskFormat format, const SkMatrix& localMatrix); | 51 GrMaskFormat format, const SkMatrix& localMatrix); |
| 51 | 52 |
| 53 GrColor fColor; |
| 52 GrTextureAccess fTextureAccess; | 54 GrTextureAccess fTextureAccess; |
| 53 const Attribute* fInPosition; | 55 const Attribute* fInPosition; |
| 54 const Attribute* fInColor; | 56 const Attribute* fInColor; |
| 55 const Attribute* fInTextureCoords; | 57 const Attribute* fInTextureCoords; |
| 56 GrMaskFormat fMaskFormat; | 58 GrMaskFormat fMaskFormat; |
| 57 | 59 |
| 58 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 60 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
| 59 | 61 |
| 60 typedef GrGeometryProcessor INHERITED; | 62 typedef GrGeometryProcessor INHERITED; |
| 61 }; | 63 }; |
| 62 | 64 |
| 63 #endif | 65 #endif |
| OLD | NEW |